flex

Adobe Flex HTTPService AsyncResponder onResult handler fires twice?

My HTTPService resultHandler is firing twice. Is that normal? The messageId and token# are the same. StatusCode=200 both times. I've examined the traffic in Fiddler and only one request is being submitted. Here's a code snippet; I've put a breakpoint on the service send() method and it is happening only once. var token: AsyncToke...

How to dynamically update date and time in flex from the server?

I have a GUI in flex. I am getting the value of the server date from the servlet to the .mxml file. I want to show the date and time dynamically changing. How can I do that in flex? ...

flex: Unhandled AsyncErrorEvent when connecting to the server

I've created a custom class to handle method calls from the server and I get this error Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetConnection was unable to invoke callback close. error=ReferenceError: Error #1069: Property close not found on MyClient and there is no default value. code from function that d...

what is * return type in as3

I saw a method in Action script that has a return type of * public function f(s:String):* what does this [*] means ? ...

Search engine indexing flash website ?

I am working on a website completely designed in Flex (flash).Can you please help suggesting whether search engines (like google/bing) can index flash content or not.If not then how do the websites made entirely in flash make themselves available on these search engines. Thanks for your help. ...

Lightweight method for integrating flash functionality in the background

Hey all, I'm looking to be able to run some actionscript 3 in the background to handle some audio and build a javascript front-end. I heard that you can simply compile actionscript 3 and run it using the flex framework, but I'm new to all of this and am not really sure the difference between flex and actionscript. Any help would be grea...

how to know if the user's camera is broadcasting (he could have pressed deny instead of accept, or his camera might be turned off)

usually i do Camera.getCamera but when this method is called the user is prompted with a dialog box where he can choose to allow or to deny the application access to the camera, or he could not have a camera how can the application now whether the camera is broadcasting ? ...

ArgumentError: Error #2004: One of the parameters is invalid.

I got the following stack trace while running a piece of code in my flex application: ArgumentError: Error #2004: One of the parameters is invalid. at ObjectOutput/writeObject() at mx.collections::ArrayList/writeExternal()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\collections\ArrayList.as:470] at mx.collections::ArrayC...

Flex Advance datagrid date column sorting problem

I'm trying to sort ArrayCollection with following dates, and getting unexpected results. 14-Apr-1980 01-Feb-1975 30-Dec-1977 27-Oct-1968 I'm using following code to sort, private function sortDate(obj1:Object, obj2:Object):int { var d1:Number = (new Date(Date.parse(obj1.date))).getTime(); var d2:Number = (new Date(Date.parse(...

how to get a list of all cameras of the user

I want to get the list of all user cameras so that he could choose from a dropdown from which camera to broadcast ...

XML Parsing issue in Flex

Hi, I have an XML with more than 10,000 lines,when i am parsing that xml using URLLoader class.i am unable to trace the entire xml.While tracing i am getting xml from the middle.can anyone suggest me how to parse the xml document. Thanks in Advance ...

Flex application packaged in AIR doesn't show it's window

I have a Flex application that builds and runs from Eclipse without any problems. I've created an Ant build based on the sample provided by Adobe and builds the application and packages it up into an AIR application. No errors occur during the build process and an AIR file is created. The problem is that when I install the AIR applicati...

how to integrate a flex application into a rails environment

Hi everybody, I have a webpage based on ruby on rails. For one task I need some more complex user interface which I plan to do with a flex programm. The question is, how I can start the a new window with my flex programm and hand over the right url where the flex app can load its data in XML format... Thanks in advance Markus ...

Implementing Actionscript Flex bitmap transparency.

I need to move a ring with a solid border over an an image. I figured I would make the ring's inner area transparent using the bitmap.threshold() method and move it over the image. However the threshold() method's sourceRect parameter is a Rectangle and I need mine to be a circle. This is the method: **public function threshold(sourceB...

Anyone know of a multi-column VBox example?

Just wondering if anyone knows of an example out there, or class I can add to my app that would perform like a VBox but with 2 or more columns? I'm adding items to a VBox from a loop, and that works fine, but I want to have it split into two columns: _________________ | | | | Item 1 | Item 2 | | Item 3 | Item 4 | | Item...

Flex - How can I define a function in one component from another?

I'm a complete Flex/Flash noob, running Adobe Flash Builder 4 Beta 2. I have a main component that needs to be able to call several popups, each mostly the same except for one function and a few labels. Obviously, I'd prefer to be able to define this function and change those labels when calling the popup instead of having tons of .mxm...

Flash Socket Clients "dynamic control of loaded swf"

"I got a server telling Flash to load a movie, but I can't tell the movie how fast to play, or what frame to start on" Do you have an example of a Flash client loading an swf and accepting server commands; frame rate, start etc? NEED FLASH CLIENT - data events - control loaded swf I've seen examples of a flash clients loading exter...

DIRECTOR "TCP/IP Socket sever/client"

Would Director be an option for creating a socket client? My client needs to accept server commands; frame rate, start etc. Director seems like it was made for controlling movies. I've got Director 11.5 at the office. Any lingo experts that could advise? Interaction with client SERVER==>XML PACKET==>CLIENT==>swf plays on given frame a...

Is it possible to replace the User's keyboard input with another string in Adobe AIR + Flex application?

Hi, One of our application is implemented in flex and adobe air. We want to have the user press combination of keys, say 'ABC', and have the keyboard return a different character, 'FOG', to whatever app is in focus. This should work even if app has no focus. Will it possible in Adobe Air/Flex? If yes, provide me some examples? Thanks i...

Display Element borders in Flex App?

Is there a way to put borders around the (MXML) elements of a Flex application? I'm picturing something similar to what Firebug does for HTML with the Inspect button (see http://getfirebug.com/html and search for "inspect" to see what I mean). The reason for doing this is that I'm having some trouble with the layout. ...