flex

Garbage collection in Flex when removeChild() is called - managing race conditions

I have a 'framework' in Flex which loads and destroys child 'sections', which are instances of module classes. These have a lot of webservice and animation in them and are part of a public facing site. Before I remove a section from the screen I call a 'hideSection()' interface method on the instance. In this method I fade out any contr...

Best way to tell if Event.COMPLETE has already fired for an <Image> in Flex

I'm looking for the best way to tell if an <mx:Image> has already fired the 'Event.COMPLETE' event. I want to do something if it has shown, or attach an event handler if it hasnt yet. something like : if (newBackground.percentLoaded < 100) or if (newBackground.content != null) i was originally doing newBackground.content != null, ...

Flex DRAG_DROP Event - Is it possible to access the Image Being Dragged?

When you start a Flex drag action, you pass in a proxy image to be displayed when you drag across the screen. When the drop occurs, I want to be able to grab this proxy but I can't find a way to from the DragEvent object. Is it possible? What I want is to actually drop the dragged image when the mouse button is released... Flex automati...

Swap main Flex application

Is there a way to temporary swap Flex's main application to another then switch back. Scenario : Main app started, display login box - then go on with main app. Login box is an application as well. Application.application is a read only property, that attempt failed. ...

How do you learn a new skill/framework/technology?

I need to be able to contribute to a relatively large Adobe AIR project and I'm starting from scratch with this technology. What's the best way to go about it? I usually get a good book/tutorial and work my way through it but this time it seems there's just too much to learn for this to be feasible within a reasonable time frame. I woul...

Loading Flex resources relative to server root as opposed to .swf location

I have a large (700kb) Flex .swf file representing the main file of a site. For performance testing I wanted to try and move it off to Amazon S3 hosting (which i have already done with certain videos and large files). I went ahead and did that, and updated the html page to reference the remote .swf. It turns out that Flash will load...

How do I make FlexBuilder recognize my MXML files as applications instead of components?

I am attempting to import mxml files that I developed with Emacs into a new project in FlexBuilder...I have created a project and manually added all my MXML and actionscript files into FlexBuilder. I now can't figure out how to run the application. I believe the problem lies in the fact that FlexBuilder believes that all my mxml files ...

how can I write a generic property modification function in Flex/Actionscript3?

I'm new to Flex, although not new to programming. I want to write a generic event handler that will be called by all my textinput boxes when they receive focus. When they have focus, I want to change the colour of the textinput box. When they lose focus, I want to restore the "inactive" color profile. I could write an ActionScript even...

Embedding Flash / Flex component into Java app

I'm working on some Flex spike in my company. We are basically evaluating different scenarios etc. What solution would you recommend for embedding Flex components into Java app? Flex <-> Java communication is not (yet...) an issue, just embedding swf into JFrame. ...

Use commandline arguments in creationComplete

How can I use command line arguments in a creationComplete event handler? It seems the invoke event happens in my AIR app after creationComplete gets called, so I can't use the args in that function, although I really would like to. Any other event that might always fire after the invoke event happens? ...

Generating ActionScript value objects from middle-tier Java classes

In a Flex / Java app stack using remoting (via BlazeDS), classes to hold data passed back and forth between client and server need to be maintained in both the client (in ActionScript) and server (in Java). I want a way to maintain theses classes in Java only, and have the corresponding ActionScript value object classes generated by the...

How far can you push Flex built-in tool-tip functionality?

Looking at tooltip support in Flex, I've seen you can apply colors and styles to modify the appearance. Is it possible to do cooler stuff like make tool tips appear with a simple animation like how menus work on modern Windows apps? ...

How does one cancel/unaccept a drag-and-drop operation in Flex 3?

Goal: Allow the user to delete a record by dragging a row from an AdvancedDataGrid, dropping it onto a trash-can icon and verify the user meant to do that via a popup alert with "OK" and "Cancel" buttons. What is working: Dragging/Dropping a row onto the trash icon. If the user clicks the "OK" button, the record is deleted....

"Bootstrapping" a remote swf into the application SecurityDomain (actionscript3)

My Flash (AS3/AIR) application is currently using a slightly unusual architecture (for a Flash app) to provide particular base classes for loaded content at runtime. The external content is published with 'stub' base classes, which are eclipsed by the 'real' base classes at runtime when it is loaded. I've heard this referred to by Adobe ...

Flash and Flex

Hi there, Just a few quick questions from me: What is the best way to inserting a Flash SWF file into a flex, that will enable me to have it start from frame 0 on reentry of that framework? Would this be States, Viewstack? Is there a way of using forward and back buttons to navigate through displaying a set of States rather than selec...

How to get command line arguments for a running process

In my program, I have been receiving an error when I use a command-line compile command for mxmlc. The error is related to an embedded font name not being correctly identified by flex in the system fonts list. However, on a whim, I decided to copy the code to Flex Builder and compile it there. To my surprise, it worked, and it found the...

Embedding Vimeo videos in Flex/flash

Is it possible to embed a vimeo video in Flex? http://vimeo.com/moogaloop.swf?clip_id=1193166 When I try to embed this link in a it doesnt come up as anything ...

RemoteObject - Cross Domain Issue

I am trying to get data from my server, used RemoteObject to accomplish it. When I run the application on my localhost it works great but when iam using it on my server i get a Channel.Security.Error(Security Error accessing URL). On the server side logs there is a mention about cross domain . 77.127.194.4 - - [23/Oct/2008 21:15:11] "GE...

What's the best way to display a small embedded animated image with Flex?

I need to display a small (15x15 pixel) animation in a Flex app. I have it FLV format, but it could be converted to somthing else. I'd prefer to have the file embedded in the app (it's only 8k in size). I've seen posts about displaying animated GIFs using third-party code which would be OK, but is there a way to do this with the nativ...

Flex Prana

I was wondering how many of you already used the Prana Framework for AS3 (Flex/Flash) or heard about it? I have found it very usefull but there doesn't seem to be a lot of developers using it... The link is PranaFramework Thx, Lieven Cardoen aka Johlero ...