flex

What is the best way for Adobe flex to communicate with Java?

I am currently working on a project for school which will be a webapp where the gui will be programmed in Adobe Flex and the backend will be programmed in java, probably as servlets running in Tomcat... I am working primarily on the backend things, with another guy in my group heading up the Flex stuff. He is convinced that to communic...

Handling Application Exit events in an AIR application

I have an AIR app with the following EXIT handler defined: NativeApplication.nativeApplication.addEventListener(Event.EXITING, applicationExitHandler); applicationExitHandler makes an asynchronous logout request via an HttpService. Since this is asynchronous, it looks like the Application's exit() method returns before the logout re...

reading simple INI file with AS3

What AS3 class should I use to read a simple property/ini file into memory to configure some settings such as colors easily for the project. format could be key=value <newline> I like to access it with this kind of API: trace ( Settings.get("key") ) ...

Flex/AS3 Drag Drop - Custom Drop Feedback

Hi I am using a HorizontalList component to display a list of images, you can drag images from another component to join the list, this all works fine. If I do list.showDropFeedback(event) I get an unsightly black bar at the top of images in the HorizontalList - what I really want is a line to the left/right of the image, where the new...

How do I code MXML to attach a listener to a custom ActionScript class

For example, the following MXML script attaches a listener to a Button class: <mx:Button id="STACK" label="OVERFLOW" click="doStuff()"/> I have a custom action script class which fires an event when a value is updated and I wish to be able to listen for that event in an MXML class: ActionScript Class: public function set currentPage...

create .project file for flex application

Hi Guys, I want to add my flex project to a SCM like Clearcase and then allow other developers download it and use in FlexBuilder. What foramt do i need to place it in my clearcase so users can simply download and import into Flex Builder? Is there some way to create a .project file or similiar to allow Flex Recognise the project in c...

How to load WSDL from file

I am trying to save some bandwidth and include wsdl file in my flex/air application. Which url format should I use in order to load that file instead of the remote one. I am using loadWSDL() method. EDIT: wsdl file needs to be part of the application. I know I can use file://some/path for local files, but don't know how to load file ...

Flex and fake Mxml initialisation without actually showing the component, (more insise)

Hello, I have a TitleWindow mxml class wich has several components, and listeners. On its creationComplete and init state i add some listeners which listen for events on its gui. This TitleWindow is only shown when the user click on a "button", i made TitleWindow a singleton with the following code: public static function getInstanc...

What are some good interview questions for a potential Flex developer?

I plan on interviewing Flex candidates in the near future and I'm looking for some good (read: not incredibly difficult) Flex development questions. Any input from the Stackoverflow community? If you post a possible question, the answer is also appreciated (but not required). ...

Navigate to Declaration (F3 or CTRL+Click) - show file in Navigator

I've been using Eclipse to develop Flex application for a while and after I upgraded to Eclipse 3.4.1, I noticed that whenever I CTRL+Click a type to navigate to it's declaration, the editor will open on the selected type, but it won't "Navigate" to file on the Flex Navigator tree. I've checked that this is not the default behavior on m...

Parsing a multipart SOAP response in Flex?

I have a Flex application that needs to grab reporting data from a Jasper server, through the JasperReports Web Services API. Flex Builder 3 does a nice job of generating the web services consumption code, with one exception. If you ask for a directory list or an accounting of report parameters, Jasper returns plain XML in the SOAP wra...

Where to get Flex - Java DS (Blaze) training material?

Hi all, I was wondering if any of you out there knows where I can get really good training material (videos, examples, etc) on Flex - Java Data Services (BlazeDS would be ideal) besides the ones offered directly by Adobe. I'm thinking on something like David Tucker's blog ...

Voice Echo Problem

I'm trying to build a video chat program using Adobe Flex but there is a giant problem with echos. If the participants arn't using headsets, everything they say echos. Worse, they can actually create positive feedback loop of echos that won't end until the mics are muted. Has anyone found a solution for this on the Flex/Flash platform...

How do I remove an event listener from an anonymous component?

Say I have an event listener tied to a component and I want to remove the event listener from the component so it can be garbage collected. The problem is I don't know what kind of object it is or what event listeners it has. Basically how can I find out what event listeners an object has and how can I remove one or all of them? ...

In Flex, what's the best way to remove a swf that was authored in Flash CS3?

So, I have an application where I'll be loading any number of swfs into a SWFLoader and removing them at runtime. The issue is - they are all timeline based movies authored in Flash CS3. I have very little control over what is in the movie other than the authors are not able to program any interactivity (i.e. no event listeners) but I w...

Why is AdvancedDataGrid not updating when the HierarchicalData dataProvider is updated?

I have an AdvancedDataGrid (ADG) with a HierarchicalData dataProvider: <mx:AdvancedDataGrid xmlns:mx="http://www.adobe.com/2006/mxml" dataProvider="{__model.myHierarchicalData}" displayItemsExpanded="true" sortExpertMode="true" dropEnabled="true" sortableColumns="false" draggableColumns="false" resizableColumns="true"...

How to Connect Flex to HTTP

I have created a project in Flex Builder 3 and I do not think it is connecting to the HTTP I have assigned. It is a blog application, that is connected to a database with a PHP page. When I view the application on a HTML page, the text fields are not editable--you cannot type in them. This leads me to believe that I have assigned the ...

Focus is stolen from Interactive Flash object by 3rd party Flash adds

I have developed a simple interactive Flash game, but now it appears that sometimes Flash Adds (3rd party ones displayed by facebook) somehow steal the focus from my flash application (by mistake?). My app has textfield() where the focus should remain until game is over. My flash object uses urlrequest/javascript to ask for focus at st...

flex responder default timeout value?

Does anyone knows whats the default timeout value for the responder object? is there a time limit when the flex app will wait for result and call fault handler instead of result handler? ...

Uploading all files in a folder with Flex

I want to make a file uploader with Flex. However, I want it to select a folder and upload all the files in the folder. It would be much better if I can actually check the files before uploding. I'm using Flex with JSP in the back-end. Is there a way to do this? So far, all I found from googling around is how to make file uploader for...