flex

Flex 4: Detect click outside of RichEditableText

Hi Is there any easy way to detect click outside of RichTextEditable? just like FlexMouseEvent.MOUSE_DOWN_OUTSIDE is used in popups. Thanks ...

Generating HTML Page on the fly

Hi I'm writing a simple html page creator that will generate html code on customized settings. Now i want to add a "Demo" button that will generate a html page on the fly for the user to see the end result. Is there any way to generate it in an online application? Thanks ...

Populating a datagrid in flex with content from an XML feed

I have a datagrid: <mx:DataGrid id="resultsDataGrid" height="328" width="604" paddingRight="0" editable="false" y="43" horizontalCenter="0"> <mx:columns> <mx:DataGridColumn headerText="Title" dataField="title"/> <mx:DataGridColumn headerText="Updated" dataField="updated"/> </...

How can I Access Items Selected in a Component from the Main App

How can I Access Items Selected in a Component from the Main App Hi, I've got a component that has a listControl and a couple of RadioButtonGroups. I need to access the selected items in the main application. What's the best/simplest way to create and access the array of selected items. So, the user clicks the button to confirm the se...

Spark button width in buttonbar

How do I set the individual button sizes in a spark buttonbar? It used to be something like: <mx:ButtonBar id="myButtonBar" buttonHeight="12" buttonWidth="250" > I get an error when I try to do the same in spark..."cannot resolve attribute 'buttonHeight' for component type spark.components.ButtonBar". FYI, I don't want to create a sep...

Create ipa for testing on device using iPhone Packager

Hi, i'm following Christian Cantrell guide for packaging AS3 application for iPhone, but i can't find a way to use the packager for creating an app for testing on device. I've tried with -target ipa-test and -target ipa-app-store but when i try to upload my app on the iPad, iTunes throws an error sayng that i'm not allowed. I've done a s...

Avoid ItemRenders Caching in a Spark List in Flex 4.

I have 2 Spark List with custom Item Renderers. I'm working on an application that enables users to grag these Item Renders from one List to the other. When one of these IR is dropped in a new position or in another List, I'm updating the dataproviders: remove the object from one list's dataprovider and adding it to other's dataprovider....

Kiosk GUI layout

I need to develop a GUI for a self-service kiosk. The kiosk will take food orders (i.e pizza, burgers, salads) and provide the ability to pay using a credit card. Can anyone suggest the best GUI layout or approach? I want to make it intuitive and simple. I want to minimize the number of button clicks. If you can provide examples, that wo...

Problem with an Event in a Custom Component

Hi, I'm just getting started with custom events in a custom component. And I don't quite have the hang of it, yet. I've got a component with a button in it. When it's clicked, I want to call a function in the main app. Custom Component: <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" > <mx:Metadata> ...

Adding Audio To FLV in ActionScript

I have an FLV without sound, and a sound file without video. Can I combine them using Actionscript? Where should I start? ...

Flex / AS3 chart component to display normal distribution

Given a dataProvider with values ranging from 25 to 85: public var answers:ArrayCollection = new ArrayCollection([ {user_id: "A5", question_1: 35, question_2: 55}, {user_id: "A6", question_1: 40, question_2: 56}, {user_id: "A7", question_1: 45, question_2: 52}, {user_id: "A8", question_1: 43, question_2: 50} ]); How c...

Flex, FileReferences upload() error in firefox

hi all. swf file in https zone, upload script in http zone. File upload fine in ie, and not work on firefox, opera. this code: request.url = this.main.serverHostUpload + "/upload_web.php"; request.method = URLRequestMethod.POST; request.contentType = "multipart/form-data; boundary=" + UploadPostHelper.getBoundary(); request.data = ne...

Spark button ... labelfunction w/ 2 diff. font sizes

I have a ButtonBar w/ a series of buttons that will each have a custom label: Person's name (fontsize 18) Person's address (fontsize 12) I am using Flex 4 w/ a custom-skinned spark buttonbar. I've got the following but how do I now change the fontsizes? Do I change this label function or is that somehow controlled in the spark skin...

PHP sockets worth it?

I am just getting started in using sockets to communicate to my Flex application as I require fast communication between the client and my server. I had a look at PHP sockets, but as PHP wasn't made to be run on a server in that way (you can, but I get the feeling it is frowned upon) I am not sure whether PHP is the best method of commu...

How to use HTML Dom in adobe flex?

Can you use Html DOM in adobe flex to... 1) write/Auto fill in a form? 2) Read values in label? Textboxes? And use them in your program? ...

spark buttonbar ... change label on rollover

I've got a spark buttonbar w/ a dataprovider as follows: ' <s:ArrayCollection id="arr"> <s:source> <fx:Object label="Dave" addr="123 Main" /> <fx:Object label="Brenda" addr="456 Center" /> </s:source> </s:ArrayCollection> ' By default, the button's labels will be "Dave" and "Brenda", respectively. How can I dynamical...

Flex3 can't resume a paused video I recorded

I've recorded a live video stream using Red5 .8. When I play it back, it works fine. When I pause (with ns.togglePause) it pauses but when I resume with ns.resume it doesn't play. private function viewTheStream():void{ nc = new NetConnection(); nc.addEventListener(NetStatusEvent.NET_STATUS,streamConnect); nc.connect(rtmpPath.text ); ...

how to make a button go to a specific frame on the main timeline

how to make a button go to a specific frame on the main timeline my button called a play_btn and i want it to go to a specific frame on the main timeline ??? ...

How can I bind a component to an XML node dynamically at runtime?

I have a custom component based on mx:ComboBox. Within it I connect to an HTTPService (the url is passed as a paramter) and bind the combobox. Parameters to be sent to the HTTPService are passed to the component. This is working fine. But I want to modify it to make it re-usable with other HTTP service URLs, which return the XML in a dif...

javax.persistence.PersistenceException: Transaction failed to flush

I got the JPA exception "javax.persistence.PersistenceException: Transaction failed to flush" Then I deleted my local datastore(datastore-indexes-auto.xml and local_db.bin) from my system. Recreated all the data again and after that, the exception was gone. I want to know what did just happened ? The following is the stacktrace...