flex

What are the pros and cons of migrating an application from AS2 to AS3?

I have a client asking me "What are the pros and cons with upgrading from AS2/Flash to AS3/Flex?" He is having performance and maintainability issues with his app. I sorta hate these questions because I just want to say "AS3/Flex is going to be faster and more maintainable," but I know I should be more specific than that. The applicat...

Get URL of current page from Flex 3?

How do I determine the URL of the current page from within Flex? ...

Flash / Flex crossdomain.xml help...

I am trying to figure out how to properly setup my crossdomain file. Here is what I have so far: <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"&gt; <cross-domain-policy> <site-control permitted-cross-domain-policies="all" /> <allow-access-from domain="cont...

AxisRenderer canDropLabels isn't working

I have a LineChart that had this code inside it: <mx:AxisRenderer canDropLabels="true" labelRotation="0"/> First all data inside this linechart where provided by a but now I get the data from a database via amf php the properties of the AxisRenderer that i have set aren't responding. The labels are very small (setting fontSize isn't ...

Binding to a read-only getter in AS3

Consider the following code: [Bindable(event="ReportHeaderVO_effectiveFromDateJulian_updated")] public function set effectiveFromDateJulian ( value:Number ) : void { _effectiveFromDateJulian = value; dispatchEvent( new FlexEvent("ReportHeaderVO_effectiveFromDateJulian_updated") ); } public function get effectiveFromDateJulian (...

Can E4X Get Attribute of a Parent Node Based on Attribute of a Child At Any Level?

Hi, I'm struggling with some E4X and hope you can help. Here's my XML structure: <xml> <node type="bar"> <subnode id="4"> <subnode id="5"/> </subnode> <subnode id="6"/> </node> <node type="foo"> <subnode id="7"> <subnode id="8"> <subnode id="9"/> </subno...

What's a good way to map from service fields to Flex value objects?

I'd like a generalized approach to mapping from conventionally-named and conventionally-typed database objects, delivered using AMFPHP, to Flex/Actionscript naming conventions and types. I want to map naming conventions; SQL is case-insensitive, so our data model has column names like object_id. Convention, however, is that our flex o...

Firefox reloads SWF file on resize & loses context

I have a Flex application. I use SWFObject (v 1.4) to "add it" onto the web page. When the webpage loads, Javascript is used to initialize some variable in the Flex app. Then the Flex app loads some images and displays it to the user. With Firefox, after everything has been loaded, when I resize the browser, the Flex app is reloaded. I ...

How to get Flex 3 ComboBox width to adjust based on bound dataProvider contents having changed?

In Flex 3, I've created a ComboBox within an MXML component similar to the following: <mx:ComboBox id="comboBox" dataProvider="{_choices}" /> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; // etc... public function get choices():ArrayCollection { return _choices; } [Bindable] private var _choices:ArrayCollectio...

Render TIFF image in Flex?

I have TIFF images in the database, and I need to render them in Flex. Please consider server-side conversion options as falling outside the scope of this question. Client-side conversion options interest me, if anyone has anything. ...

Obtaining the functionality of Flex Tile Container in HTML

The Flex tile containers will create and remove tiles as the data changes and seems good to use in areas where the content is dynamic. How to implement this functionality in HTML? I guess that we need to use some JS and/or CSS. Any inputs? ...

Flex 3 / Coldfusion 8 Problem with Numbers

We recently migrated from coldfusion 7 to coldfusion 8. One of our reporting flex apps takes the returned results of a cfc query and adds up a column in that ArrayCollection. It worked on coldfusion 7, but now, in coldfusion 8, it sees that column as a string instead of a number, which is causing NaN errors on negative values. Its a nume...

Remote Shared Objects: Which is better, one array SO or multiple object SOs?

Hello everyone, I'm building a multiplayer game using Flash/Flex for the client and FluorineFX (just like FCS/FMS except it is written in .NET) on the server-side. My questions are regarding the use and performance of shared objects over RTMP protocol. Essentially, I'm planning on having quite a few objects on screen simultaneously, ea...

How can I fix list components that overrun to the side in Flex?

So you've created a list and hooked it up to your data. But wait! Someone decided to enter, say WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW street as their address. Or named their kid John Jacob Jingleheimer Schmidt, and all of a sudden, your list has a bizarre scrollbar running across it, right in the middle of the component, where no human b...

MouseDown/MouseMove/Click Issues with Flex Drag and Drop

In Flex 3, I have an ItemRenderer that has a button in it. I want users to be able to click and drag this Renderer, but also just click the button. Right now it's working with the Renderer listening on "MouseMove" to initiate drag and drop, and the button listening on "click". However this is very screwy. If somebody is dragging a scro...

Adobe Flash Player Cache: Does data persist across different users of a system?

Does anyone know if adobe flash player cache data is available to other users on a system? For example: A user logs onto Windows XP, then uses my adobe flex application... and in the process of doing so downloads the signed flex lib... He then decides to mow the lawn and log off. At about 3pm the same day, his Mum can't hear the TV o...

Flex: selectable text in DataGridColumn?

How do I make text selectable (so I can copy) in a DataGridColumn? ...

Export into different file format

I want to Export in charts & datagrid data into different file formats - "PDF, Word and Excel" in my web application..I am using Flex 3 and want to export the file in local system. Any help will be highly appreciable... Thanks in Advance... ...

How to style the each cell of Flex DataGrid..

I have a Flex DataGrid, which has some columns, i had put a item renderer, which makes all the elements in that column hyperlinked, i have a requirement, where i need to see the type of user, based on that i have to either enable or disable the hyper link. Is there any good way , where i can get the style properties at the cell level......

Flex: Nested tags in MXML == run method.... how to set this up?

I have a class called JDChart, and a class called JDLine. Inside JDChart there is a method called addLine() that expects 1 parameter of type JDLine. This is all good. but I want to be able to put this in XML Like this: <JDChart> <JDLine/> <JDLine/> <JDLine/> </JDChart> And for each JDLine nested in a JDChart in the MXML, I want the ad...