flex

Most scalable web stack for high performance Flash/Flex/AIR app?

I am in the planning phase of a new multi-user client/server app using Flash via Flex and AIR. I am trying to decide which web platform/stack is the best suited for this? I have used RoR in the past, but as i understand, RoR is single-threaded, and is therefore not the ideal choice for handling potentially thousands of simultaneous req...

How can i calculate line number relative to cursor postion in TextArea with Flex?

HI Everyone, How can i find line number in events like mouse clicked, key down and key up. And also highlight that line with color. I used TextArea. Thanks in Advance. Regards, shivang ...

Flex TextInput Left Click - Parent Steals Focus

Hi I have having a problem in my flex/air application, in which when the left mouse button is clicked on a TextInput the focus is stolen by the parent. So in more detail I have an hierarchy as follows... accordion ->panel(Custom) ->TextInput ->TextInput So some really annoying reason when I click on the TextInput's...

I need to design usa interactive Map in flex

i need of simple UsA map in flex ,all Area need to be click able as button . Is there any tool available for designing buttons in various shape in flex or any build in free map is available in flex. As vector format so that zoom in will not affect the quality. i need to design like as shown in this site http://www.futurevision.com.ua...

Flex datagrid control with expanding rows

I'm looking for a DataGrid with expandable rows implementation in Flex. I don't want to use Advanced DataGrid control because it's too slow and too complex. The desired behavior is like this: when you click a row, a panel opens between the rows with some details and the rest of the rows are moved down, and when you click again the panel...

How do I compile multple independent mxml files at one time?

Our application has over 15 different top-level mxml files to create individual controls that are used in our pages. We are using Ant to do our automated builds, and are calling the mxmlc task for each mxml file separately (See question 78230 similar example). Running the compiler separately for each mxml file, however, is already ad...

Remove highlight on a selected button from a ToggleButtonBar

Well, title explains all. I'm trying to get rid of the highlight that comes around of the selected button in a ToggleButtonBar ...

What is the equivalent of foreach (with keys) in ActionScript

I am looking for the equivalent of a foreach loop with keys in Actionscript. In PHP this would be: foreach($array as $key => $value) { } I found two solutions that will work, but I am wondering if there is a better way to do this. The first solution is to use the for..in loop. Which gives you the keys, but you still have to use the ke...

How I can split AS code and MXML in Flex

In Silverlight I can write XAML definition and script logic in different files and it is very convinient are there any way to do same stuff in Flex? ...

Flex: Run scripts before/after build?

Currently I'm building my Flex projects using Flex Builder's "built in" build system (ie, "clicking the run button"), but I'd like to start running scripts before/after the build. What's the easiest way to do that? Or, even, where should I start looking? ...

[flex] how to have a Button not fire on space key if it has focus?

The behavior I'm trying to prevent is after a user clicks on a button, the button retains focus, and then if the user hits the space key, the button fires again. So I thought it could be solved either by setting the focus elsewhere, or by having the button ignore the space key. I've tried adding the following keyDown event listener on ...

AsUnit verses FlexUnit – which is "better"?

I'm learning ActionScript/Flex at the moment, and it's come time for me to start unit testing. My reading shows that there are two main frameworks out there: FlexUnit and AsUnit. Is there any reason to learn one over the other? Is one, in some way, "better"? ...

Flex Rich Text Editor - Limiting the number of characters

Is there a way to restrict the number of characters in the Flex Rich Text Editor? I guess there should be, since it's possible in a textarea. So, if I could get hold of the textarea contained in the rich text editor, I would be able to do it ...

problem processing xml in flex3

Hi All, First time here asking a question and still learning on how to format things better... so sorry about the format as it does not look too well. I have started learning flex and picked up a book and tried to follow the examples in it. However, I got stuck with a problem. I have a jsp page which returns xml which basically have a ...

'Pre-measuring' Flex Components

I'm implementing a custom Flex component that provides a scrollable viewpoint onto a (possibly very large) data grid. I'm using the ItemRenderer pattern, such that I only have UIComponents for the elements visible on the screen at a given time. In other words, something similar to the standard DataGrid control. One requirement I have is...

Coding constraints checker?

Hi, Please help me to get a coding constraints for action script and flex 3. Regards, Lalji ...

get custom element to the foreground with flex/actionscript

Hi community, I have the following problem, I have a canvas with some axes and grids I drawed on it by Shapes and added them to the rawchildren of the canvas. Now I created a custom component with only a VBox and a BezierSpline (degrafa) embedded. Now as I added the spline component to my canvas (addChild(spline) the spline is behind th...

<mx:HTML/> link trouble

I create a AD area as a in my Fx app. http://www.triafx.com/ReklamKampanyasi/reklam.html But link not work when it was clicked. What is my wrong? ...

Flex: how to load a .swf and use its library?

I have a symbol in a .swf's library, with a linkage name of "Pana". The Pana symbol is just a 100 frame animation that I would like to have timeline control over in Flex. So how can I load the .swf and then add the Pana symbol to the display list and control it's timeline? Thanks! ...

Flex: How do you import a .zip project?

Whenever you view a flex app and go to view source you can download a zip of the flex app. Once you do that how do you import it? I went to flex>import and I get to options import archive file I pointed that to the zip and it says its not a valid archive file. so I tried the other option import flex project folder, I extracted the zip an...