flex

flex air datagrid itemRenderer

Hi, I have a datagrid with custom itemRenderer. When I click in a cell, I get its reference. Now I would like to get the reference of the other column in the sae row. e.g. In the datagrid I have clicked in 4th column of the 3rd row, I am getting reference of it no problem in that. Now I would like to get the reference of 1st column o...

How to give a link from php page to another URL with a flex state?

If I want to navigate directly to the second state of some flex app, for which the link has to be given from another php page. How to do it? If I give the normal URL it will anyway land me to the first state.But I want it to directly go to the second. ...

How can I set "maxChars" of the TextInput in an editable ComboBox?

I want to set the maxChars property of the TextInput of an editable ComboBox. I am currently trimming the text to a set number of characters using a change Event: private function nameOptionSelector_changeHandler(event:ListEvent):void { nameOptionSelector.text = nameOptionSelector.text.substr(0, MAX_LENGTH); } This feels like over...

E4X: sort XMLList by month?

I am trying to sort an XML list by month, the actual tags have more attributes than just month but for brevity I'll not include them: <var month="OCT"/> <var month="NOV"/> <var month="JAN"/> <var month="MAR"/> <var month="SEP"/> <var month="JUL"/> <var month="APR"/> <var month="AUG"/> <var month="DEC"/> <var month="FEB"/> <var month="MA...

Flex - Label shows on position = Callout or Outside, but not Inside?

Hello all, I am having a very strange issue in Flex. It started when I noticed that my Pie Charts weren't showing a label when the pie chart only had one item in it (one item = 100%) but perfectly whenever there was more than one item. After much frustration and many hours of tinkering, I came to realize the label would show if I set ...

Is building separate .swc allow a faster loading of the application ?

Our application is a bit slow to load at startup, i'm wandering myself if a sepation of the module of the application in several swc will decrease the loading time( grosso modo : a module = a "page" ) ...

Properly serializing flash.utils.Dictionary to a SharedObject

I have a convenience collection class in my Flex project called HashMap, which is essentially a wrapper around the flash.utils.Dictionary with a bunch of convenience methods and an added (synced) ArrayCollection so that I can pass the HashMap to bindable controls that want an ArrayCollection. That all works fine. What doesn't work fine,...

Freeze columns in Flex AdvancedDataGrid

I know you can use the lockedColumnCount property of the AdvancedDataGrid in flex to lock any number of the first columns in a grid, but how could I lock the first and last columns in the grid? ...

this.focus() does not work properly in Firefox

I am using an ExternalInterface call on activate from a flex application embedded within my html document. The call goes to a javascript function which does function documentFocus() { this.focus(); } Everything works like a charm, except that Firefox does not focus the document body 100%. It stops listening for onkeyup events (it st...

AS3/Flex: How to make mxml files loaded via ViewStack see their parent's variables, etc.?

For a project I'm working on in Flex I decided to create several separate files for each 'theme' that can be used. Since each theme can and will require specific code, images, styles and virtually anything else, the classical css-only option was not really possible. I have one problem with this method, and that's that each 'child' mxml ...

Using functions defined in other MXML files

Hello, I've got a Main.mxml file and a RoutePlanner.xmlm file. The RoutePlanner defines a custom Canvas components, and the Main.mxml uses that custom component. The problem is the RoutePlanner componetns contains alot of events, such as Click() and MouseMove() etc. However the functions those events reference to are all defined in Mai...

How do I prevent a canvas opened from a PopUpButton from closing when it loses focus?

I have a popup button that launches a canvas containing a form that a user can submit. I'm validating this form and displaying an alert when the validation fails. As soon as the user clicks 'OK' on the alert, the canvas launched from the PopUpButton loses focus and closes automatically (its default behavior). PopUpButton._closeOnActivity...

arbitrary number of anonymous Loader handers with individual data ?

I have an arbitrary number of files that I need to load in an AIR app. I want to iterate through an array of File object and create and launch Loaders for each one's File.url. When they are done (event COMPLETED or IOErrorEvent.IO_ERROR), I want to stuff their data somewhere. If they fail, I want to make an exception report. I cannot f...

Flex 3 ASDocs Library Issue

We've been attempting to compile ASDocs against a Flex 3 Library Project. Our problem is that ASDocs refuses to recognize any custom mxml component that is both created and used within the library. For example, if we have a custom mxml AdvancedButton control in our library, and we attempt to use it in another mxml class within the li...

How do I set a focus property on a TextInput that is built using AddChild?

I have the following MXML: <mx:State name="myState"> <mx:AddChild relativeTo="{myhbox}" position="after"> <mx:Box verticalAlign="middle" horizontalAlign="center" width="100%" height="100%"> <mx:Form id="myForm" width="479" verticalScrollPolicy="off" horizontalScrollPolicy="off"> <mx:FormItem label="My Label:" fontW...

Flex: create a template app?

Whenever I start a new project in Flex builder I always have to go and add all my project build paths, adjust the compiler settings, etc. Is there a way I can make a template with all that done and then just click new from template? Thanks. ...

Scroll thumb is scrolling past the track skin boundary in Flex app (with screen shot and code)

I created a custom scroll thumb in Flex but the scroll thumb is scrolling past the track skin. Check out this screen shot. This is my code for the track skin, which essentially just makes it invisible so it appears to be rounded: package com.project.skins { import flash.display.DisplayObject; import flash.geom.Rectangle; ...

How to establish communication between flex and python code build on Google App Engine

Dear Friends, I want to communicate using flex client with GAE, I am able to communicate using XMl from GAE to FLex but how should I post from flex3 to python code present on App Engine. Can anyone give me a hint about how to send login information from Flex to python Any ideas suggest me some examples.....please provide me some help ...

Dynamically loading a flash movie from a flash movie

I have 2 mxml files, lets say main.mxml and child.mxml. Now lets say I want to load child.mxml inside main.mxml and pass it a complex object as a parameter. How would I go about doing this in AS3/Flex 3? I have tried to search for this on Google and SO but either I am not searching with the right keywords or there is no info (unlikely)....

Flex Component Libraries?

I've been asked by my boss to make a semi-functional mockup of a webapp using flex. He has requested that it looks as "WOW!" as possible. The built in flex components are pretty basic. Are there any libraries out there with nifty looking components? The only one I have found is flexlib, which is awesome, but I still need more componen...