flex3

How can I replicate the functionality of the Flash Builder's release tool in ant?

I want to build an ant script that does exactly the same compilation actions on a Flash Builder 4 (Gumbo) project as the Project->Export Release Build... menu item does. My ant-fu is reasonably strong, that's not the issue, but rather I'm not sure exactly what that entry is doing. Some details: I'll be using the 3.x SDK (say, 3.2 for...

How to let GC to recycle mxml 's RAM when I don't wanna use it ?

Dear friends , I find Flex need more RAM than Flash , I use the Flex Profiling to trace it , I don't know why GC don't recycle mxml object when I don't wanna use it ? Thank you. ...

Sort contents of Flex ComboBox

I need to be able to sort the items of a combobox so they will be in alphabetical order. how would I do this? ...

no contextMenu.customItems with AIR?

Have some code that's been in use for quite some time - always compile with mxmlc. Just compiled it with amxmlc and it gave me errors over the presence of "customItems" - nothing else at all in the entire 1500+ line AS3/flex program. I took out the customItems reference and it compiles with amxmlc just fine. Nothing about that featu...

Calling Application.application.enable from a TitleWindow in a different mxml component.

Good day. I have a Flex RIA App, and in the application tag there is a button when its pressed calls upon a TitleWindow from another .mxml file, and sets application.enable = false That way the user cant use any of the components in the application, and still can use the components in the TitleWindow. The problem its. When the Title...

Flex 3 multiple upload progress monitoring

I have a Flex3 application which has to be capable of uploading multiple files and monitoring each files individual progress using a label NOT a progress bar. My problem is that a generic progress handler for the uploads has no way (that I know of) of indicating WHICH upload it is that is progressing. I know that a file name is availabl...

How do you programatically change the source of an image whose name is ambiguous?

How do you say or achieve container.child.source = image.png? I have a hexagon map built by specifying width and height. I draw a wireframe and place a base image for each hex into a canvas. Next, the canvas listens for a mouse click. I then run a calculation to determine which hex the mouse click was closest to. My intent is to cha...

Charts itemrenderers in flex 3

Can anyone tell, how to add an image in the chart datatip? ...

Flex Hibernate - Setting up EntityManager and SessionFactory with Flex/Mate/ and BlazeDS

I am creating a Flex project using Mate, Blaze DS, Tomcat server. All of that seems to be working. Even my Hibernate calls are working. However they do not seem to be created in the correct way. I am logging in the user with the following block of code in java: public AbstractUser login(String username, String password){ //Configurati...

Adobe Flex key capturing

In my Flex application when click F11 key the page gets into full screen and disturbs the shape of the page.Can anyone help me out in capturing the F11 key .I am using IE7. ...

How can I use one service definition for testing and another for deployment with Flex Builder?

I would like to use different service definitions in a Flex app depending on whether I'm running on: My local developer machine The test tier The QA tier The production tier My services are all AMFPHP remote objects, living on different hosts and at different locations depending on which tier I'm on. How can I have my flex app choos...

Actionscript Compiler Problem: Error #1068: Array and * cannot be reconciled.

I'm getting a very bizarre callstack in my Flex project (AS3). Main Thread (Suspended: VerifyError: Error #1068: Array and * cannot be reconciled.) I was able to reproduce it using this block of code. If you debug, you'll never get inside "failure" function. private var testArray:Array = [{},{},{}] private function run()...

Detecting the size of SWFLoader content

This is a long shot as I don't think it's possible. I want to load in a SWF and set it to fit in the window, whilst keeping it's aspect ratio. When I do this by setting the height and width of the SWFLoader, the SWF will resize to best fit in the space (as it is keeping it's aspect ratio). However I can't find a way to detect the heig...

HTTPService event listener so it triggers something when ".send" method gets data from XML.

Good day everybody. I've doing a bit of "training" at working with Flex and Remote Data from XML files. This is my HTTPService <mx:HTTPService id="loginData" url="com-handler/basic.xml" showBusyCursor="true"> </mx:HTTPService> I have a button and when its clicked its call a function, that calls loginData.send and does a little IF co...

Creating Custom RegExpressions for MX:Validator - Explanation.

Hello guys. I'm been trying to validate Data in a Flex TextFiled, and I've encountered some Validator's include in the Flex Framework. But lets say i want to build a custom Validator with my own RegExpression. Can somebody do me a simple example. Appreciated. ...

Creating a column of RadioButtons in Adobe Flex

I am having an un-predictable behavior of creating radio buttons in advancedDataGrid column using itemRenderer. Similar kind of problem has been reported at http://stackoverflow.com/questions/112036/creating-a-column-of-radiobuttons-in-adobe-flex. I tried to use the same procedure i.e. bind every radio button selectedValue and value att...

Combobox Dataprovider - Only gets labelField from XML not the associated ID.

Hello guys. Back again this time working with data providers. Well i been doing a bit of training with Flex, and I've searched, and i managed to get a ComboBox being populated through XML data. Its works pretty well, he gets the LabelField for each item from XML, but the ID associated to each item he doesn't get then from the XML. Cod...

textflow right click cursor blink

Hi, I am using textflow in my application. I need to add a functionality of getting focus(cursor blinking) on right click. How can I do this? Thanks in advance. ...

Converting a Flex custom component to a module

How to take an existing custom component in Flex and convert it into a module? EDIT: What should be done in the mxml where this custom component is used? Should it be replaced with a to load the module? If yes, how to deal with code that uses instances of the components? ...

Flex 3 error: "Can not resolve a multiname reference unambiguously"

Hello, I'm quite new at flex and have been following a game tutorial. I've created a class named Bounce (Bounce.as) but when I try to compile, I get the above error. I've been searching forums and help, but the only people who seem to get this error is with HTTPServer. How can I specify to actionscript 3.0 that I want to use a created cl...