flex

FLEX Video player - play count

I have a video player in flex which constantly plays a movie. Is there a way to see how many times it has played? So each time the movie is played, text filled populates with +1. Thanks, Yan ...

A question on capturing the button click event in ANOTHER mxml file

Hello there,this seems to be an interesting question to be discovered in Flex. I registered a very simple button event listener in A.mxml: <mx:Script><![CDATA[ import mx.controls.Alert; public function Handler():void { Alert.show('click event occured'); } ]]></mx:Script> <mx:Button label="{resourceManager.getString('re...

Check remote file availability with AIR

Hello, I was wondering if there's a remote file availability check using Flex-AIR. Not a local file. Example: For displaying a image place holder instead of a broken image icon. image.source = imageUrl + "/__default.gif"; Thanks. ...

Flex 4 E4X Filtering By Attributes Has Undefined Variable

I have some xml and I am trying to filter it using e4x. My e4x statement looks like this: model.config.source.fees..fee.(@min<amount).@amount My xml looks liks this: <flex> <fees> <fee type="credit" min="0.00" max="200.00" amount="6.00"/> <fee type="credit" min="200.01" max="370.00" amount="10.00"/> </fees> </flex> Whe...

How can I speed up the compilation speed of Flex?

My Flex project have 6 sub projects . How can I speed up the compilation speed of Flex? ...

save a file on a local machine from a flex web app

is there a way to save, not save as, from an online flex app onto someone's local machine? Basically, if a user opens a file local to their machine in an online flex app, is there a way to allow them to save it locally without going through dialog boxes and picking file names? Note: I've read that this is possible on Air, but seems unli...

Merging several audio streams into one in red5

Hi! I have several flash clients that send live audio stream to the Red5 server. Is it possible to combine all this audio streams together so that other clients could subscribe only to one audio stream and listen live audio from all publishers? ...

question on flex mxml reference

Hello there, I declared a namespace at the top of my mxml file Radio.mxml; xmlns:jour="components.journal.*" I now have another mxml file Journal.mxml is under the components/journal folder,the Radio.mxml is at the root folder which contains the components folder. Now I want to access the Journal.mxml in the Radio.mxml using the nam...

problem with flex module full screen

hi i want to load flex module with width="100%" height="100%" but it doesn't works <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="*" width="100%" height="100%"> <mx:Panel width="100%" height="100%"> <mx:ModuleLoader url="TestModule.swf" > </mx:ModuleLoader> </mx:Panel> </mx:Application> <?x...

Flex - Date serialization

Does anyone know how to get actionscript to render a null date value '000:00:00T00:00:00'? I am calling a web service that expects date fields in the SOAP xml. I need some of these dates to serialize as null and I can't see how to produce null. The closest value I can get is '1899-11-30T00:00:00Z'. Below is the code I am using: var dat...

FLVPlayback - replay counter

Is there a way to output in the text filed a number of how many times the video looped? (how many times it has played) Thanks, Yan ...

Compiling Flex Modules - Speed up link-checking?

Hi all, I'm working on a Flex project that has 28 modules, and 1 main SWF. Compiling everything takes 18 minutes total. I'm using load-externs to load a link-report from my main SWF - that works great. The file size of the modules is minimal. But link-checking still occurs for each individual module, increasing the compile time dram...

write an adapter that maps all the LinkedSetFx events to the expected Flex collection events(As3Common-collection)

LinkeSetFx has its own CollectionEvent, but I don't know how to map the LinkedSetFx event to mx.events.collectionEvent(I want use it in ComboBox). LinkedSetFx is in AS3Commons-collection framework.Here is the url, choose the as3commons-collections-1.0.0.zip, you'll find LinkedSetFx in src\org\as3commons\collections\fx ...

Fields are mismatched when passing object from Java to Flex, how do I fix it?

We have a pretty big application with lots of objects being passed between flex and java. One object in particular has a subtle bug: It's a plain old java object being passed to the flex front end (using blazeds producer/consumer messaging). The POJO has two String properties such as: myShirt.color = "brown"; myShirt.description = "wi...

Streaming sound control in Flex (Newbie)

I'm assuming my lack of knowledge (I just started learning Flex yesterday, hah!) is the reasoning behind my inability to figure out how to make this work correctly - it may even just be a code positioning issue. I've got several MP3 files I'm trying to stream. Right now I'm just trying to start and stop the main MP3. I've got the MP3 su...

unable to query each element from this xml. i have to fetch title, id,

<?xml version='1.0' encoding='UTF-8'?> <feed > <id>http://gdata.youtube.com/feeds/api/videos&lt;/id&gt; <updated>2010-08-24T13:18:29.767Z</updated> <category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/&gt; <title type='text'>YouTube Videos matching query: aa</title> <logo>http://www....

Question about applying effects on containers

I need to apply an effect on containers that on mouse over the container it get resized or expands while pushing other containers surrounding it and causing them to get resized too. Something similar to this Can someone provide me with an example or a hint on how to implement something like this? Thanks ...

What is the right method for modifying text content in Flex component lifecycle?

Hi, I have custom components which must adjust their text content based on space constraints. For example a component adds labels until there is no space, and then the content of the last label becomes "(x more)" I do not have access to size of child controls before adding them. When in updateDisplayList, I make changes to the layout of...

is there any way to handle "ALT" key in flex?

is there any way to handle "ALT" key in flex? When I press alt ley the KeyboardEvent.KEY_DOWN event is not fired and focus moves to browser's main menu(IE, Opera, Firefox) ...

URL encoding when downloading a file in Flash

I have a flash app that needs to download a file, whose name contains UTF-8 characters. Internally, the filename is read from a UTF-8 XML file, e.g. "my filé.pdf". The code goes something like this: url = get_filename_from_XML(); req = new URLRequest( url ); ref = new FileReference(); ref.download( req ); The problem is that the UR...