flex

Compiling with mxmlc vs Flash

I have some ActionScript code that I got from some website. I've tried to compile the code and it seems to have compiled with no errors. However, it doesn't work as expected and I am wondering how I can debug this? It seems that the website uses Flash to compile it because there's a .fla file located as well. Does anyone have any idea?...

document.getElementById(“ID”).focus() when focusing <object> containing swf

How to set focus to embedded swf object in chrome.document.getElementById(“ID”).focus() is not working in chrome but works fine with firefox and ie. ...

Flex AsyncToken implementation on Rails

Hi there, i'm using a Rails backend with my App and getting a AsyncToken returned from it (a DB-Call to be specific) As far as i know the AsyncToken returns a result event when done loading all data from the request, this way its possible to make sure all data was loaded before executing some function which uses the data. i tried the ...

Get Flex modules from ASP MVC

Hi, We´re developing an ASP MVC application witch the View (aspx) has a Flex embed. This aspx/flex view is composed by a flex application and several modules. So, when we call the application url (http://localhost:9090/MyProject/Flex/Index), the server invoke the method the will return the ActionResult that represents this action, in ...

XML, TypeError: Error #1088: The markup in...

Hey all, Can anyone see whats wrong with either the code to grab the XML or the XML file itself? It looks well formed to me and I don't see the cause of the error: A TypeError has occured: TypeError: Error #1088: The markup in the document following the root element must be well-formed. var file:String = 'config.xml'; var...

Flash builder 4 - Build into different output folders

Hi, Can I configure Flash Builder 4 to build into different folders? Something like: build applications files into "folder a" and modules files into "folder b"? Thanks, André ...

Flex - sorting a datagrid column by the row's label

I'm creating a table that displays information from a MySQL database, I'm using foreignkeys all over the place to cross-reference data. Basically I have a datagrid with a column named 'system.' The system is an int that represents the id of an object in another table. I've used lableFunction to cross-reference the two and rename the co...

Flex Spark: How to right align an icon on a button or tabbar button?

Hello, I would like to right align an icon on a button or tabbarbutton and keep the text left aligned in Flex 4.0 Spark. So far, I've come up with something like the following in my custom skin: <s:HGroup> <s:HGroup horizontalAlign="left"> <s:Label id="labelDisplay" textAlign="left" maxDis...

Adobe AIR: Controls flipped (mirrored) in certain build environments

I'm having an issue where certain controls are flipped, depending on the machine that I'm building my project on. On my development machine, when I build it, everything is okay. However, when I build it on our build server, some things are flipped. It seems to be things that are on a higher layer - for instance, options in the select con...

flex programmatically show tooltip chart

I have a chart with 2 line series in it. So, "Jan" (x-axis point) will have 2 Y-axis points The problem : Is there anyway to force flex to show tooltip on both series simultaneously? ...

Can you write to a socket from disk without loading the data in question into memory first?

Using the Socket API in AIR to write a large file to a server, is there a way to do this without reading the file into application memory first? I am using FileStream to store the data in a bytearray and then writing that bytearray to the server through the socket but can I just have something like a file descriptor that references that ...

Flex: Listening for CollectionEvent in custom component

(EDIT: I've edited my question to make it simpler, sorry if some answers are out of context) I have prepared a reduced test case for my question: I'm trying to create a custom component which is being fed with XML data coming from the server. My problem is that the CollectionEvent listener doesn't get fired and thus labels no...

How to load and run a Flex3 SWF inside Flex4 or vice versa?

I am interested in understanding how to run a Flex-3 SWF inside a Flex-4 SWF. My Flex-4 host app looks like this: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="...

flex 4 - layer a component on top of another?

How can I change the z axis of components and put one in front of the other? The new layout property in Flex 4 has changed significantly & now not sure how to do it. ...

AdvanceDataGrid nodes collapse on refresh

I have an AdvancedDataGrid which Im attemping to update with data from a web service that I poll once very 10 seconds. Im using a HierarchicalData object to provide data to the grid. The update seems to work fine, except that on each update, any nodes that were expanded are collapsed when the grid is refreshed. Stranger still, when I d...

flex:lib treegrid:item not found when the dataprovider change

it is all right when i set the dataprovider the first time. but if i set the dataprovider the secondtime ,it occurs error:item not found. i don't konwn why. is it a bug of treegrid? how can i solve this problem. waiting help. ...

define a class implements ICollectionView, which can use as ComboBox or DataGrid's dataProvider(not build-in class)

recently, I research for the collection framework, and find LinkedSet(AS3Commons collection framework,it is a good opensource framework) written in ActionScript, but it can't use as dataProvider in ComboBox or DataGrid, because only implements ICollectionView can use as dataProvider. So I want to try if a class implements ICollectionVie...

In which forums do Flash/Flex/Silverlight developers hang out?

We consider using one of these technologies for a new project and are currently in the planning/learning stage. What are the most popular online forums to meet Flash/Flex/Silverlight developers? Of course, I mean in addition to Stackoverflow ;) ...

Can A Flex Application Detect It's Own URL?

Let's say I had a flex application (Web, not Air), that was meant for Mass Distribution, to be included like a plug-in of sorts, at various websites. Is there any way for a particular instance of the SWF to detect it's own URL while it's running? If so, can you point me in the right direction of which ActionScript command I might googl...

how to change flash player global setting by some program or by changing some .cfg file

Hi guys, my project is just try to access some locally stored swf file but it falls under sandboxType localWithFile and localWithNetwork. then i google for this and answer is for using both our sandBoxType must falls in localTrust. to do so we have to set our flash player global setting and trusted local path of our swf file. by doing so...