flex

How to send the file details to be sent in tcp flex to flex?

Hi all, I am trying to send the file details one air app to anther air application using tcp. Can anybody help me? Thank you. ...

Way to determine Flex 3 Effect direction?

Flex Effects include "isPlaying" property to check whether Effect is currently playing or not. But is there a way to find out what is the direction of playback (whether the play was started with playReversedFromEnd)? ...

How can we avoid packet missing in UDP Flex?

Hi all, I'm trying to send large files using UDP Adobe air to CPP. While transferring large files some packets are missing. How can I retrieve the missing packets data? I'm first of all connecting client(air) with server(cpp) using tcp. After connection establishment I'm starting file transfer. I am planning to get the file missing data ...

enabling/disabling checkbox according to some condition

I have a chechbox in a gridview. i need it disabled for some condition and enabled for other. Problem is how to fetch check box id out side the grid. Please help .... ...

farmville clone

is there any opensource flex or flash code to accommodate a starting point for a game like farm-ville or alike ...

Setting button width with fx:Style

I have 4 buttons, all of them have the same width. <s:Button id="btn1" width="{btnWidth}" /> <s:Button id="btn2" width="{btnWidth}" /> <s:Button id="btn3" width="{btnWidth}" /> <s:Button id="btn4" width="{btnWidth}" /> Is it possible to set their width with Style, something like this: s|Button{ width: btnWidth; } I tried it, bu...

Passing URL from a XML file into SpringGraph Flex Component.

Hi all, As above, i'm trying to pass a URL in a XML file into the SpringGraph Flex Component. The SpringGraph Flex component is the work of Mark Shepherd, which can be found here. Kudos to Mark! ...

swf doesn't respond when relocating it

Hi, i have in my program few swf files and using mxmlc i compile the application into one swf file. when i open the swf from the output directory(just dbl click) everything works fine. But, when i copy the directory to another location in the hardisk the application stops responding (i can see my swf main picture and its buttons in it. B...

Flex Repeater: Delay repeater until rest of view has loaded

Hi, I have a flex repeater for an accordion inside a TitleWindow that is quite slow, I've already set recycleChildren to true, which has helped, but it's still slow on the first load and causes the animation to stutter when I open the TitleWindow. The repeater is just one part of what's visible in the TitleWindow, what I would like to ...

How to turn bytearray into IList in Actionscript?

How to turn Array (like Camera.names) into IList (for for ex MXML s:DropDownList <s:DropDownList x="113" y="121" selectedIndex="0" dataProvider="{Camera.names}"></s:DropDownList> )? ...

Handling Hide/Show dock icon menu in AIR on OS X

I'm trying to figure out how to access the Show/Hide option that OS X automatically adds to the dock icon menu. The problem is that no matter what I do to hide my app, the dock icon menu will always show Hide and only if I click that option does it switch to Show. I want to have my app toggle visibility using the Invoke event but if a...

Is there a way to convert a swf to an .abc file?

I'm looking for a way, preferably a command-line utility, to pump out an .abc file for a compiled swf. I've looked into asc.jar, but so far it seems like it can only accept classes, not compiled swfs. Anybody know of a good way to do this? The end-goal of this process is to use Zwetan's RedTamarin project to run describeType on some sp...

Reading data from XML file in flex.

How to read data from XML file in flex? ...

How to add list box in action script 3

I want to add simple list/combo box with action script 3 . but i have not found anything in internet. Can anyone give me sough rough idea with some dummy values thanks ...

HBox Image as BorderSkin

I've designed a pretty 6pixel border for an HBox. It's a .png file and I tried setting it as the border skin like so: HBox { border-skin: Embed('../graphics/skins/border.png'); } However, when I run the application, the image is used for the background instead of the border. How do I fix this? ...

Testing flex with selenium without updating code

Hi all, I have been asked to check how to load test a flex application. I've though about using Selenium, since it's precisely its job. I've also found that testing Flex with Selenium requires extensions to Selenium. I've seen that there some of these : sfapi flex-ui-selenium First, it seems that both requires me to rebuild my Fle...

global security manager in flex

hi, I made a swf that interacts with other site on the internet (which has a crossdomainfile for me). in the main.mxml there is a definition of webservice (mx:WebService)(which is not in my domain). Therefore when loading the swf, there is a first call to crossdomainfile.xml. I put this swf on my server so that my clients can get it. Whe...

Trouble managing events in Flex/actionscript

Hello all, I'm doing some newbie tests, so I decided to capture the keyboard events to move a rectangle. But I don't get the desired result. Unless I click on the TextArea box, I'm not able to capture the event key code. After that, all goes pretty well. I'm using Eclipse 3.3 + Flex 3.0 on Linux. Here's my code: <?xml version="1.0" e...

call flex initComplete at a specific time

Hi, Below is the overriden on complete function for a preloader in Flex. private function initComplete(e:Event):void { //dispatchEvent(new Event(Event.COMPLETE)); cp.status.text="Configuring... Please Wait"; } What I want to do is when the app has finsihed loading I want to change the preloaders text to "configuring". Then...

how to make a particular column of datagrid in flex as non sortable?

I am trying to make only one of the columns of a datagrid as sortable using flex 3. but using sortableColumns all the columns change their property...any solution?? ...