flex

Debugging FLEX/AS3 memory leaks

I have a pretty big Flex & Papervision3D application that creates and destroys objects continually. It also loads and unloads SWF resource files too. While it's running the SWF slowly consumes memory til about 2GB when it croaks the player. Obviously I am pretty sure I let go of reference to instances I no longer want with expectation th...

Flex AIR unzip

Hi, I am a newbie to Flex AIR. I am trying to create an application that will unzip the contents of a zip file & place them in a particular directory. How can I achieve this? Is there any unzip library available for flex? Pls help me. Thanks in advance. ...

setStyle to Variable's id

I want to apply a font style to the objectSelect that hold id. I know currentTarget.id or Target.id do the job but any way to make the setStyle apply to "text1"? private function changeFontStyleFromCombobox(e:Event):void { trace(objectSelect); //it hold "text1" value from one of the textarea.id if(objectSelect != null) { // show...

Is it possible to remain in fullscreen mode with another window having focus?

I have a flash panorama that has hotspot links to pop-up windows that contain more information about the object. Right now if you are in fullscreen mode and click a hotspot you are automatically kicked out of fullscreen mode and the pop-up then opens. Is it possible to have the pop-up open and have focus while in the background the pan...

Performing function on node click in tree and then showing results in text box

Hi, I have a tree object which is bound to an XML list. The XML list contains a name for the type of code I have written (e.g. IM client) and also a path to the file where I have some code. When the user selects a node's child in the tree, I want to load the file from the path of the selected node's child and then show the text in a te...

Disable Yes button in FLEX

Hi, I would like to disable Yes button in an Alert box. Is this possible? Thanks in advance. ...

What would you use to zero pad a number in Flex/AS3?

Duplicate of this one. What would you use to pad zeroes to the left of a number in Flex/AS3? Is there an equivalent to printf or NumberFormat that does this? I'm looking for the nicest implementation of this or something similar: public function zeroPad(number:int, width:int):String { // number = 46, width = 4 would return "0046"...

Flex vs. JavaScript

RIA are more richer when it is developed using Flex. Will this be an obstacle for developers using Javascript for front-end? Will javascript be replaced with Flex? ...

Using external SWFs in a Flex application - duplicating MovieClip?

Hello, I'm working on an Flex application which uses many objects, e.g. LEDs, bulbs, gauges created in Flash. The objects internally consist of several small MovieClips and have their own logic inside. One of the initial requirements was that the objects have to be loaded at runtime, thus they were exported as SWF, not SWC. However, we ...

When do controls in Flex become addressable?

I'm having some troubles with Flex with regards to changing controls on different viewstack panels. At runtime, certain controls aren't accessible and come back as null. Here's an example structure: viewstack1 canvasPeople datagridPeople canvasDetails tabNavigator1 canvasPersonDetail txtLastnam...

Best way to execute a function after exactly one frame?

With ActionScript3 for Flash Player 9+, what is the nicest way to call a "once-off" function after exactly one frame? I am aware of the Timer class and it's uses, and the callLater method on Flex UIComponents (which, glancing through the source, doesn't look very efficient in this scenario). I'm also aware of setTimeout (in flash.utils)...

I want to let java application invoke a function in action script?

Dears, how can I let an SWF file to retrieve values immediately from Java application that does live calculations (Speed is a necessity). question in other form : how can I give my website browser immediate data - that are bean calculated now - as fast as i can ? ...

flex 3 making application height dynamic based on datagrid size

Hi, I need to make my application height dynamic based on the size of a data grid which changes after a user does a search for specific items. Can someone help me with this. Also when im embedding in my html is there a javascript function i can call which can access applicatin height so i can set page accordingly? the javascript needs...

How can I remove a namespace from an XML document?

In my Flex application, I call several .NET WebServices that return XML. However, these WebServices all return XML with a namespace. I cannot read/parse the XML without referencing the namespace, meaning that I have to include the following lines of code in each Class that calls a WebService: private namespace PCRWebServices = "xxx.some...

Custom Video Player in Flex

Hello, I have been developing a custom flash player in flex for use in a web site. I am running into a strange issue and was wondering if I could get some help. I use an hslider component for video navigation. The problem I am running into is when I drag the slider to another point in the video it is not precisely setting the video play ...

Flex package question

In which .swc package are the flash.net namespace classes found? I think it is either Flex.swc or Framework.swc but I'm not sure. Cheers ...

Complete / Progress events aren't firing for Image control with embedded content

I've got the following MXML tag: <mx:Image id="image" width="100%" height="100%" source="@Embed('../assets/Test.swf')" complete="completeHandler(event)" progress="progressHandler(event)"/> But for some reason my completeHandler / progressHandler functions aren't being called. The reason I n...

How to send custom HTTP headers with Flex when using Google Chrome

I am using a UrlRequest to send data to a server. I am sending various parameters via custom HTTP headers in the following way: urlRequest.requestHeaders.push(new URLRequestHeader("someheader", "somevalue")); When the request hits my ASP.NET endpoint (a class implementing IHttpHandler), the HttpRequest Headers property doesn't contain...

Threads in Flash and Flex

Are threads possible in Flash, Actionscript and Flex just like in C# and Java? ...

Need to set cookie header on AIR use of SWFLoader to retrieve remote Flex .swf file

Am coding an AIR 1.5 app in which I want to do a remote load of a Flex .swf file from a web server. I'm using Flex 3.2 SDK and attempting to use the sub-application feature via SWFLoader. I've been referencing the Developing and loading sub-applications document on how to do this. I can indeed successfully load the Flex .swf file from ...