flex

Auto-sizing and positioning in Flex

I am working on a flex app that uses XML templates to dynamically create DisplayObjects. These templates define different layouts that can be used for each page of content in the app (ie , 2 columns, 3 columns etc etc). The administrator can select from one of these and populate each area with their content. The templates add one of 3...

BlazeDS : what ARE those standard security fault codes ?

Hi, I'm trying to write a Flex client that interacts with a Spring-Flex java application. I would like to catch (the flex equivalent of) SecurityExceptions and Display an error page if the user was trying to do something they aren't allowed to do Pop up a login box if the user wasn't logged in According to the Spring-Flex docs, ...

UIComponent base class not working

I have a BaseComponentClass that I am using as the class that all my custom components extend. For some reason, none of my custom components show up at runtime. I am not getting any compile or runtime errors either. I am implementing all the protected UIComponent methods. My code looks like this: public class BaseComponentClass extends ...

flex to red5 v0.9: Client rejected, unscheduling waitForHandshakeJob

Hi. I'm trying to connect from adobe flash builder 4 beta to red5 v0.9 rc2 (latest svn). i try to connect using the exact following example: http://www.actionscript.org/resources/articles/615/3/Getting-started-with-red5-server/Page3.html i get the following error message: INFO] [NioProcessor-3] org.red5.server.net.rtmp.RTMPHandler - ...

Flex Data Binding

I'm trying to databind an object's property to a ComboBox's (editable=true) text property. This property is of type Number. If I bind using the inline syntax, it works: <mx:ComboBox text="{myObj.prop}"> If I bind using mx:Binding, I receive an error: <mx:Binding source="{myObj.prop}" destination="combobox.text" /> // 1067: Implicit...

AS3: Security sandbox violation

I want to go live with my site. ...but I need help with a security violation I am incurring. I've seen various threads on this forum regarding a crossdomain.xml file to include and link to, but I don't get it... no matter what I try I still end up with the same result. You'll note below that it is not recommended to use crossdomain hac...

which is better for desktop application?

hi! i'm new to creating desktop applications. I've a working site in php with mysql support. I want to convert this site into a desktop application. Is Adobe AIR or Adobe Flex better? can i use php as such in both AIR and Flex? or should i convert them to xml or something which it uses? ...

Cancel a net stream to fms server from flex

Hello, Is there a way to cancel a netstream publish from flex to a flash media server? The issue is I have code where I can Start/Stop a recording to my Flash media server. However in my front end I have a cancel button which allows the user to cancel the current recording and all this code essentially does it close the netstream. ...

Flex: Disable range on Slider?

I have an HSlider with a minimum of 1 and a maximum of 6. Is there a way I can disable the range 3 - 6, so the user can only select from the range 1-3 on the slider. Note: Your first thought might be to tell me to set the maximum to 3. I dont want to change the maximum to 3, I want the user to know there is more, but currently not selec...

Flex dataGrid how to color empy rows?

My problem is that empy rows (if there are more rows that dataSource items then there are empy rows) look identical to rows binded to dataSource items which are empy (see the difference?). The only way to know the difference is to hover over them with the mouse, and if they are empty there's no color change, otherwise there's the blue b...

AS3: grouping sprites

I have a handful of sprites that I am attempting to group together via addChild(). Here is some pseudo-code demonstrating what I would like to accomplish: import nav.text.TextSprite; spr1:Sprite = new Sprite(); spr1.graphics.clear(); spr1.graphics.beginFill(0x000000); spr1.graphics.drawRect(0,0,100,100); txt1:TextSprite = new TextSpr...

Convert a Relative URL to an Absolute URL in Actionscript / Flex

I am working with Flex, and I need to take a relative URL source property and convert it to an absolute URL before loading it. The specific case I am working with involves tweaking SoundEffect's load method. I need to determine if a file will be loaded from the local file system or over the network from looking at the source property, a...

Exporting japanese characters into csv from flex application exports garbled values

We have a flex application where we export the contents of table data into csv format. When we have japanese characters in our table the data exported contains junk character. We are using the fileReference class and the save method. According the documentation if the data to be saved is a String it is saved as a UTF-8 text file. Anybody...

Selecting row on selection of CheckBox in Datagrid.

I have a datagrid with 5 columns. The first column has checkboxs and rest four columns have data from the dataProvider. I have two relating issues: First: I want the row to get selected when I click on a checkbox, or if i click on multiple checkboxes, every row should stay selected in the datagrid for whose checkbox is selected. Sec...

How to write curved text in flex?

How can I write curved text in my Flex application. I have a circle component in my application , divided into 4 sectors. My circle component is such that I have an outer circle and an inner circle, with a small gap between the two circles. Now I want to place the curved text in this gap for the four sectors, curving along with the circl...

Fetching remote objects add "_$$_javassist_x" to type

Hi, we have a client/server app (Flex and Java) that uses BlazeDS to do remoting. This allows us to exchange and map types between client and server. For some reason a User type we are retrieving from the server is not sent as "User", but as "User_$$_javassist_x", where x is an integer. The other types we are sending over all work fine...

disable mouse wheel scrolling while cursor over flex app?

Is it possible to disable mousewheel scrolling on my webpage while the cursor is over my flex application? My flex application is a map that allows user to zoom in and out using the mousewheel; however, when I put my flex app onto my webpage, the scrollwheel causes the page to scroll instead of zooming in and out... Edit: I have added...

Do you have to disconnect or somehow close http connection when using HTTPService

Hello Do I have to disconnect or somehow close http connection when using HTTPService in Flex. For one I notice that on the status bar of the browser (Firefox) I see (when I envoke HTTPService) Transfering data from (server name here), even after I get all the results back from the HTTPService. One other quick question regarding HTTPSe...

Flex 3 combobox: filter XMLListCollection datasource

(I'm using Cairngorm) I have a combobox that displays items form an XMLListCollection that's in my model. I want to only view the items (XML) whose "sent" properties is false.. like item.sent == 'false'. This filter must apply only to this specific combobox, not everything that's bound to the XMLListCollection source. And of course it mu...

Adding dynamic DisplayObjects in Flex

I am adding DisplayObjects to a Canvas using ContentContainer.addChild(c); Where ContentContainer is my Canvas object and c is the DisplayObject I have created at run-time Some of these DisplayObjects also have children of there own which are added at run-time prior to the DisplayObject being added to the Canvas I then need to iter...