flex

How to control which users can see which videos

Imagine you have a large number of video files stored on a server, and a Flex app which lets users play those videos they have access to. How can you best set this up? Wouldn't the Flex app just be sent the name of the video to play... in which case couldn't someone else write another flex app if they knew the file names? Can Flex play v...

Sound duration in Flex

Hi, I noticed many players display audio track duration before loading the sound file, but I cannot figure out how that is done. So how can I get the duration of an mp3 file in Flex without having to load the file in a Sound object ? Think about loading 1000+ files in an application that has to immediately display the duration for each ...

How do I change the value of an item in a Flex ArrayCollection

I have an ArrayCollection with values predefined. I want to assign a new value to items in the arrayCollection but can not figure out how. Basically I want to do something like this: acGuages.itemUpdated(0).thevalue = 90; (Changing the value from 25 to 90). Thanks. private var arrayGuages:Array=[ {thevalue:"25",height:"115"},...

alternative to EVENT.DEACTIVATE

EVENT.DEACTIVATE doesn't work with safari in mac, is there any possible way to do this. (MouseEvent.MOUSE_LEAVE is not the same as detect when user lost the focus of the window) so I ran out of alternatives. ...

Text on top of images i Flash slideshow (Flex)

Hi everybody! I never did stuff like this before! Tried to google around but couldn't find anything useful! So: how is it possible to make text appear on top of an image (slideshow) in Flex using action script (can it be done another way)? (I already found action script code that does implement the slideshow but how to show some dynami...

How to format text in flex TextArea?

TextArea in flex doesn't render <TABLE></TABLE>. I want to display text in textarea in two columns. Column1 Column2 Row1: Data, data, data row1 Row2 longer: Data, data, data row2 Depending on text width in Column1 text in Column2 will be shifted. So all rows in Column2 are going to be aligned. How can I do...

Flex Event.ID3 dispatches twice

Hi, Why does this code mySound.addEventListener(Event.ID3, myID3Handler); cause the myID3Handler to run twice ?! I also notice that values provided to the handler are not the same, actually the second being the correct one. Thanks ...

How to data bind DataGrid component without scrolling up?

I have a DataGrid component that I would like to update every 5 seconds. As rows are being added to this DataGrid I noticed that every update causes it to reset the scroll bar position to the top. How can I manage to keep the scroll bar at its previous position? ...

How to create multiple processes in Adobe Air program?

How to create multiple processes in Adobe Air program? Docs? Tuts? Algorithms? (for ex I have some design logic and some services client logic i want to run them in separate processes) (Air 2.0 is ok for me) ...

How to get array from server to form,as form items in flex ?

am sending one user object from java to flex using remote object,now i want to get each item from that array to display in text boxes...how can i do this ? userInfo=event.result as Array; <mx:FormItem label="FirstName" fontWeight="bold" width="325" required="true"> <mx:TextInput id="firstname" text="{userInfo.getItemAt(0)}" wi...

SSL reverse proxy for legacy application binary transfers on sockets

Hello I'm struggling to find a reverse proxy http->https like for binary sockets. There is a Pound server which offers this kind of SSL tunneling but just for the http protocol. Basically I work on 4'th layer TCP/IP with binary data. Between flex/AIR client and c++ server. I can wrap sockets in C++ without problems, but this is a prob...

Adobe Flex, loading embedded fonts from modules

I am just programming a language learning app in Flex for various Asian languages. As some of these languages have very big font sizes (e.g. Chinese), I do not want to load all these fonts into the app. at once but was thinking to put them into different modules and then load only the specific module (depending on which language is chose...

Flex: Scrolling in datagrids

Hi! I have 2 questions about flex datagrids: How can I scroll it automatically to the bottom when new portion of data arrived to it (e.g. I added new items) Strange, but seems it doesn't scroll when I use scrolling wheel, is there any trick about it (especially for mac Users) Thanks in advance Some changes: public function scro...

Problems with parallel calls to remote objects

Hi everyone, I have the following application in flex. I want to call two different remote objects in parallel. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:RemoteObject id="service1" destination="test1" /> <mx:RemoteObject id="service2" destination="test2"...

Flex: Datagrid, break line in case of very long string

Hi, I am trying to implement simple chat application using flex. In it all my chat messages are stored as array collection items, where each item is a string (correspondent to one chat message). I am using datagrid to display all messages. One message goes to one cell of datagrid. Here how it looks: http://img.skitch.com/20091129-qt3g...

flex state basedOn multiple states

Is it possible, in flex, to assign multiple states as base for another state? Say I have state "stateA" that adds a button "buttonA" and state "stateB" that adds a button "buttonB". Is it possible to create a state "stateC" that is based on state "stateA" and "stateB"? If not, is there a workaround to accomplish that? Also notice that t...

Adobe Flex Progress Bar for LoadStyleDeclarations

I'm loading a rather large swf as style with the following command: StyleManager.loadStyleDeclarations("assets/modules/"style.swf",true,false,ApplicationDomain.currentDomain); The style is loaded fine but now I would like to add a progress bar to it, but I do not know how to do so. I am rather new to Flex and found only examples refer...

Deserialize AmfPhp messages

Is it possible to deserialize the AmfPhp messages while remoting? They are in binary, and assuming that amfphp understands what they are I should be able to decode what it s. How to ? is this considered a security issue? ...

How does Jaycut (online video editing tool) work?

Jaycut is a flash-based online video editing tool. It's surprisingly capable, what I'm wondering is how they achieve this in Flash/Flex. They allow mixing of video, audio and applying transitions and that seems a lot to do in AS3. I wondered if perhaps the mixing is done on the server when you click "preview video", but even then it stil...

Flex Builder: Style is displayed in design perspective, but not in browser when I compile and run it

Hi, I am trying to use image as a background of my application, I have not success :( Here is the code which shows how I do it: <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FFFFFF" borderColor="#ECEEEF" color="#000000" cornerRadius="5" creationComplete="main()" xmlns:MyComp="components....