flex

How do I sort in a Flex AdvancedDataGrid - callback isn't being called

I have an AdvancedDataGrid that uses customer grouping of data. Not all of the groups will be at the same level in the hierarchy, and groups can contain both groups and members. We have a sort callback, but it's not being called except for groups at the leaf-most levels. See code below for an example -- expand all of the groups, then cli...

How do I visually "break out" of a Container in Flex?

Here's my problem - I have some code like this: <mx:Canvas width="300" height="300"> <mx:Button x="800" /> </mx:Canvas> So the problem is that the Button inside the canvas has an x property way in excess of the Canvas's width - since it's a child of the Canvas, the Canvas masks it and creates some scrollbars for me to scroll over...

What is the best way to handle English and Chinese in a Flex application?

I have a requirement to be able to provide a flex component in English and several asian languages. I have looked at the flex documentation and it seems that I have to build several swf's, which feels wrong. Does anyone know of a straightforward and practical way of bundling string resources in different languages and handling the fo...

When should an oldschool flash developer use flex?

What are the key differences between Flash and Flex? I have over five years experience with flash and feel very comfortable developing with it and ActionScript3. I find myself more and more curious about Flex and want to know when it is best to use flash or flex. Also, is everything that can be done with MXML, able to be done with AS3...

Runtime CSS fails silently when Flex application is loaded by a non-Flex application

I have compiled a CSS swf file which includes embedded skins for my Flex application. In our download product, this CSS works fine. On the web, a non-Flex container is loading the Flex application, and the CSS fails silently. When the application is debugged, the following runtime error can be seen in the trace output, but is not rais...

In Flash, how would I run an e4x statement when that statement is stored in a String?

So I have something like this: var xmlStatement:String = "xmlObject.node[3].@thisValue"; What mystery function do I have to use so that I can execute xmlStatement and get thisValue from that xmlObject? Like.... var attribute:String = mysteryFunction(xmlStatement); P.S. I know eval() works for actionscript2, I need the as3 solution....

Why does Flex Builder fail to connect the app so often?

Flex Builder often fails to connect to the app that it's supposed to debug. After a minute or so it times-out and says that it couldn't connect. The only way I can get it to stop doing this is by restarting Eclipse. Very annoying. Anyone know why this is? I'm using FB 3.1 and Firefox on Win XP. Many thanks! ...

Flex: Modify an embedded icon and use it in a button?

Just that, if you embed an icon: [Embed(source='icons/checkmark.png')] private static var CheckMark:Class; You end up with a dynamic class. You can pretty easily assign the icon to a button at runtime by calling the setStyle method: var btn:Button = new Button(); btn.setStyle("icon", CheckMark); But what if you wanted to alter the ...

Is it possible to stop a ColdFusion Request?

I have a Flex application that calls a function which searches a large document collection. Depending on the search term, the user may want to stop the request from flex. I’d like to not only stop the flex application from expecting the request, but also stop the CFC request. Is this possible? What’s the best approach for doing this? ...

Flex graphic assets: SWF or SWC?

Which is a better format to store graphic assets for a Flex application, SWF or SWC? Are there any real differences, and if so what are they? ...

Running a SWF from file:/// without having the user change their Flash Player security settings...

I have a Flex app that does a a fair amount of network traffic, it uses ExternalInterface to make some javascript calls (for SCORM), it loads XML files, images, video, audio and it has a series of modules that it could be loading at some point... So the problem is - we now have a requirement where the user needs to run this content loca...

Does anyone know of a php framework that would handle progressive enhancement for Flash/Flex content?

Ok, I'm using the term "Progressive Enhancement" kind of loosely here but basically I have a Flash-based website that supports deep linking and loads content dynamically - what I'd like to do is provide alternate content (text) for those either not having Flash and for search engine bots. So, for a user with flash they would navigate to:...

Where can I find the Flex source code?

I keep hearing that Flex is open source and I figured that a great way to learn about the inner workings would be to look at it. I can easily find the Flex SDK (http://opensource.adobe.com/wiki/display/flexsdk/Get+Source+Code), but I'm wanting to look at the class definitions for the MXML core library (like NumericStepper). Have I misund...

How do you make Flash not render an object on the Stage?

This discussion started over here but I thought it would be nice to have a definitive answer... So let's say you have MovieClip on the Stage (or a UIComponent for the Flex audience) - what do you have to do to not make it so that the user can't see the object but also so that the AVM2 doesn't even factor it in when rendering the stage f...

How to format a currency datafield in Flex

I have an xml file providing data for a datagrid in Flex 2 that includes an unformatted Price field (ie: it is just a number). Can anyone tell me how I take that datafield and format it - add a currency symbol, put in thousand separators etc. Thanks. S. ...

I need help styling FormItem components in Flex.

I have a form that I would like to style. specifcally I would like to chnage the background color of the form item's label. (the backgorundColor attribute changes both the label and the inputs background color) i.e. <mx:Form> <mx:FormItem label="username:"> <mx:TextInput /> </mx:FormItem> </mx:Form> I would like to...

Favorite Web Form Validation Technique

What is everyone's favorite way to sanitize user data? I've been using Javascript, but have recently required something more secure (people can turn it off, after all), so I was looking at Flex, but thought I'd ask the community what they thought. ...

Flex : Filter a datagrid using a combobox value that is contained in a datafield

I have a filter in a combobox with a number of entries. Instead of filtering the datagrid with an exact match, I would like to take the selected value and only display records where the selected value is contained in the datafield. For example: the user selects a value of "New" and the datagrid displays records where the contents of the ...

DDD and Asynchronous Repositories

We're working on a rich client (written in Flex) that is connected to a Java backend, using both RMI and JMS. I was thinking about implementing the client in a DDD fashion so that it has Repositories for the CRUD operations on the domain objects. The problem is however that all backend communication happens asynchronous and there is no ...

Detecting when a user leaves a page / browser in Flex

I have an HTML wrapper that contains a Flex application, is there an Event that I can listen on, that is triggered when a user leaves the HTML wrapper either by navigation arrows or closing the browser? Thanks. ...