flex

Connecting lines (while dragging) in Flex/Actionscript

Hi, I have a mx:Canvas element that contains several mx:Panel elements. I want to be able to draw a line connecting two such mx:Panel's in such a way that the line continues to connect the two mx:Panels when one or both get dragged around. It seems like something that should be trivial to do, but I haven't been able to figure it out. I...

What is the Easiest/Best Way to Get an Array of Values from an Array Collection?

I have an Array Collection with any number of Objects. I know each Object has a given property. Is there an easy (aka "built-in") way to get an Array of all the values of that property in the Collection? For instance, let's say I have the following Collection: var myArrayCollection:ArrayCollection = new ArrayCollection( {id: 1, nam...

Showcasing Flex - Tour de Flex

I ran across Tour de Flex a couple days ago. It's a demo that showcases all the Flex controls, with cross-references to source and references. It's a great way to get an idea of the resources available, and how to use them. Not a question, but a useful resource since I've seen a number of Flex/Actionscript questions here. (Note that I'...

Is it possible with AIR to play a video while it is downloaded

The idea is download a video in parts (from different servers) but starting to play before video file is complete. The issue is that VideoDisplay component doesn't read the video file if it is opened for writing and vice-versa: writing is impossible if VideoDisplay plays the video... ...

Flex profiling - what is [enterFrameEvent] doing?

I've been tasked with finding (and potentially fixing) some serious performance problems with a Flex application that was delivered to us. The application will consistently take up 50 to 100% of the CPU at times when it is simply idling and shouldn't be doing anything. My first step was to run the profiler that comes with FlexBuilder. ...

Flash and CORBA

How do I get AS3 and/or Flex/AIR applications to communicate with CORBA apps? ...

Flex - does anyone have an example of the use of the VideoDisplay control events

The Flex 3 docs are fairly basic. Can someone post a more complete example that uses the control's events? I'm still trying to get my head around ActionScript events. ...

Login error connecting to salesforce.com from Flex

Has anyone suddenly encountered login errors from their users trying to connect to salesforce.com from a Flex app using as3salesforce.swc? I get the following error... password removed to protect the innocent... App Domain = null Api Server name = na3.salesforce.com _internalServerUrl = https://na3.salesforce.com/services/Soap/u/14.0 l...

Error #2099: The loading object is not sufficiently loaded to provide this information.

I have a Flash app made up of AS3 components that I am trying to run in Flex. In Flash, after the main component is added to the stage, the loader object (loaderInfo.loader) is null which is fine and I handle that. In Flex, on the applicationComplete event I add the the main component to the stage and the loader object's getter throws...

Accessing a HTTPS website using a Flex/AIR HTML component?

Is it possible to access remote pages through https when using the HTML component inside a Flex AIR application? I'm looking to build a credit card payment integration into an AIR application and the easy way would be to send the user to a payment service within a browser embedded into the application. ...

Flex List control more than a String ?

Hi flexers, I have a list control where i want to show a string (thats fine) but a colored square as well. Imagine i have a "add player" button a text input with a color picker. I want to see the color + player name in the List. How could i do this ? [Bindable] public var data:ArrayCollection = new ArrayCollection(); <mx:List id="...

Flex - databinding from a Tree to a Repeater

Hi, I'm trying to make an XML questions editor in flash. Basically I load in the XML into a Tree component - XML like so: <questions> <question id="1" type="radio" text="This is question 1" isBranch="true"> <option id="1.1" correct="false" text="This is option 1" /> <option id="1.2" correct="false" text="This is option 2" /> <opti...

Download a file with Adobe AIR

How do I download a file from the internet in a Flex based AIR application. I tried using a file with url set to the address, but I got a file does not exist error when I tried to save it. And it is really hard to google for help on this issue. ...

How about using FLEX 3 component inside Flash file?

Is it possible to use Flex 3 component/code inside Flash (cs4) SWF file ? I know its possible in the opposite direction. ...

PlotChart/LineChart vertical linear gradient on the line series

I want to build a LineChart component where the color of the line is indicative on how high the value is. I should be able to do this buy just using a gradient stroke (see below) but for some reason the gradient only goes from left to right and the "angle" property is being ignored. How could i do this? <mx:PlotChart id="bpChart" wi...

Mxml and as3 confusion [simple]

Hi, I was wondering i can call an as3 function defined in script from mxml code just like this: <mx:Line x="translateX(xmin);" .. > <mx:Script> <![CDATA[ // do some basic math private function translate ... If not possible do i have to convert everything to as3 ? Thanks ...

How to resove this error "An unknown item is declared as the root of your MXML document. Switch to source mode to correct it." ?

I have only this in my mxml source code: <?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:comp="components.*" width="770" height="330"> <mx:Label x="185.5" y="150" text="Placeholder for Future UI." fontSize="30" color="#93A8AD"/> </mx:Canvas> And when I try to use the ...

Javascript / Flex communication use case [need advice]

Hello everyone, I have a web page with a flex component, the flex component is responsible for creating an image from user inputs. Once an image is ready the user enter some more information in the HTML form and click on the send form button. When this button is clicked, javascript calls a function on the flex components which returns...

Calling fcsh from PHP script

Hi, My question is whether or not Flex's fcsh can be called from within a PHP script. Here is the background: I have been created a simple process that creates a simple quiz/tutorial by converting a text file into a .mxml file and compiling to a .swf file using the mxmlc compiler. This works well from the command line, but I wanted t...

Parsing large XML files in Adobe Flex

I am working on an Adobe Flex app, which needs to parse a relativley large XML file. ATM it is only 35MB, but in an ideal world would get much larger in the future. **Edit: I have no control over the XML file I am essentially dropping it's contents right into an SQLITE database, so I could use the SimpleXML class to turn it into an obj...