flex

Flash - recording from user's webcam

I've seen a few sites that have a flash app which takes video from the users webcam and manipulates it. One example is the flash barcode reader http://www.renaun.com/flex2/BarcodeReader/BarcodeReader.html . I want users to be able to submit 10-15 second clips which I can save to my server and then play back later via flash again. Can ...

Algorithm to determine if a component is fully visible in Flex?

Is there a built in way to determine if a component is fully visible in a Flex application (i.e. not offscreen one way or the other). If not how would I go about figurin it out? I want to show or hide additional 'next' and 'previous' buttons if my primary 'next' and 'previous' buttons are off screen. What event would be best to listen ...

How does JavaFX compare to Flash and Flex?

I know Flex pretty good but also started to use Java FX. I am a little bit confused. Java FX seems to focus more on low level drawing operations and animations. Less on creating standard UIs like Flex. So is JavaFX more like Flash than Flex? On the other side JavaFX also supports Swing components as well as data binding, which makes it...

Calling java from PHP exec

Hello, I am doing the following in PHP: exec('java -jar "/opt/flex3/lib/mxmlc.jar" +flexlib "/opt/flex3/frameworks" MyAS3App.as -default-size 360 280 -output MyAS3App.swf'); When I run this from the command line, it runs fine and finishes in a second or two. When I run this command from PHP exec, the java process takes 100% CPU and ...

Flex - URLLoader and HTTPService...

I use URLLoader to load data into my Flex app (mostly XML) and my buddy who is doing the same thing mostly uses HTTPService. Is there a specific or valid reason to use on over the other? ...

JSON in Flex. "Access of undefined property JSON"

I am trying to parse JSON in an Adobe Flex app, using http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/'>This Tutorial Unfortunately, Flex Builder 3 is flagging a "Access of undefined property JSON" error on the line var arr:Array = (JSON.decode(rawData) as Array); I don't know what it wan...

Corner radius in Adobe Air application

Hi, all friends, How can we make rounded corners on the vbox control in the Air application? I am hiding the header and setting transparent to true, but then it does not show me rounded corners on the VBox in the application. I am showing this VBox to the user. Thanks in advance. ...

Where to begin learning Flex and Flash

I want to start developing Flash and Flex applications so that I can put all of the concepts floating around in my head into action. The problem is that I have never done any programming nor dealt with code...ever. I have worked in the graphic design industry and a lot of the storyboarding features in Flash are intuitive to me. Additiona...

Graceful handling of server timeout in BlazeDS

I have a flex client that makes service calls to a tomcat server running BlazeDS. I would like to gracefully handle server session timeouts in this environment. I do have security constraints on the service, so the client authenticates against a remote object by initializing a ChannelSet based on the destination, and then logging in us...

drag-and-drop problem in a Tilelist using an ItemRenderer

Hello, in my flex application, I created a Tilelist. In this Tilelist, I am using an ItemRenderer to create a box consisting of an image and an VSlider in each tile. The tile need to be dragable when you click on the image, but not dragable when you slide the slider. How can I achieve this ? I have been scratching my head searching on...

how to log in a Drupal user (or get currently-logged in user) from Flex/Flash?

I have a Flash application that is hosted from within a Drupal page. Some parts of the Flash application should be available to all users, but some should only be available to a logged-in user. (The specific role doesn't matter, just that they are any authorized user of the site). From within Flash, I can detect whether the user is lo...

How do I create a list control with Rich text in FLEX?

I am a FLEX newbie, trying to port a Javascript-based prototype into FLEX. One thing my original prototype had was an unordered list (ul) which had list items that had rich text inside it, i.e. I had a mix of differently styled and colored text and some images inside each item. I looked at the List control for FLEX and it only supports d...

Actionscript Object(Class?) Syntax

In trying to learn how to create objects in ActionScript, I have had no success. One thing that I have noticed is that there seems to be a billion different ways of doing it. Even if none of them have worked for me. This is really confusing me, and I don't know which approach to try to debug. The approach that seems to come up most of...

IAutomationObject not found when running Flex application

i get the following error when trying to run a flex application (which has been working fine!). I was playing around with some different setttings trying to optimize the compiled size. I've put these settings back to the defaults as much as I thought but still getting issues. I remember getting this error before but cant seem to remembe...

Capturing user input from Flex TextInput control: which event to use?

Should I use the change or textInput event to capture user input on a TextInput control? Why? ...

Flex datagrid universal numeric sorting function?

I am using a Flex dataGrid, and need to sort some of my columns numerically. Looking at the sortCompareFunction, it seems like i need to create a different function for each column that i want to sort, because my sort function has to know what field it is sorting on. Is there any way that I can pass the field to be sorted on into the ...

Flex: How can I Load data, then create required components?

I have a flex application that has three tabs. Each of these tabs has a component that loads a ‘form’ that has a dropdown combo box. These combo boxes depend on external data in order to populate correctly. Currently the first tab is being created and the data that should be populated in the combo box is not in there. The combo box for t...

Is it a bad idea to get rid of the mx: in your Flex code?

I am a newbie at Flex, and I don't like the way you have to write the namespace mx: for every control declaration you write. It makes the code cluttery. I would like to write: <Panel ... rather than <mx:Panel ... I tried writing xmlns="http://www.adobe.com/2006/mxml" for the top level element instead of xmlns:mx="http://www.ad...

MS Expression, Adobe Flex, or OpenLaszlo?

Anyone have any comparative thoughts on these three technologies? Each addresses a different VM, but how do they compare in capabilities? ...

How do I find the length of an associative array in ActionScript 3.0?

Is there a simple way to retrieve the length of an associative array (implemented as an Object) in ActionScript 3.0? I understand that there are two primary ways of creating associative arrays in AS3: Use a Dictionary object; especially handy when the key does not need to be a string Use an Object, and simply create properties for eac...