flex

Flex: ArrayCollection children returns null

I have an ArrayCollection with following structure (when viewed in debug mode): [0] - [0] -- src - [1] -- src src is the path to an image. I need to get all of the src's out of the arraycollection. However because of the first (unnamed) node i can't take them in. I've tried ArrayCollection[0].children and save the result in another ...

How do I ensure a Flex dataProvider processes the data synchronously?

I am using an component, and currently have a dataProvider working that is an ArrayCollection (have a separate question about how to make this an XML file... but I digress). Variable declaration looks like this: [Bindable] private var _dpImageList : ArrayCollection = new ArrayCollection([ {"location" : "path/to/image1.jpg"}, {...

Best Practise to Define a MXML component and update MXML component in Flex application

A Flex components values are initlized by init methord. In an application flow, How to refresh a mxml component data value ; as init is callled at the start up it self only. eg. of mxml componet may be as simple as button label or text as complex as repeater whose data provider is a web service ( means a fresh quesy should be made to ...

In Flex, how do you put an Image inside a Canvas without it overflowing?

I have an Image nested inside a Canvas. <mx:Canvas> <mx:Image source="@Embed(source='assets/library.swf', symbol='Waves')" /> </mx:Canvas> I'd like the Image not to overflow the bounds of Canvas. But when I set width and height on the Canvas, my Image disappears. Canvas also doesn't seem to respect horizontalScrollPolicy. Seems easy ...

AdvancedDataGrid sort number color

next to the header of an advancedDataGrid you see a number. This number stays grey no matter what i do. I Already searched 1 hour to find the solution. Very anoying because it should be so simple to change this. I hope someone could help me with this problem ...

merging document with openoffice from flex (air)

Hello, i'm searching a method to merge some data from an air application to a template made with word (.doc). I've search on the web for exemple, look at the open office API, but did'nt find anything. 1- do you think it's possible from air to make a document (pdf as possible) from a existing template in .doc ? If not, i read that livecyc...

Flex sorting of XMLListCollection subelements

In a Flex webapp, is there an easy way to go about applying a sort to the children of an XML element, based on the children's attributes? Example follows below: XMLListCollection: <a anotherProp="ABCDE">   <e prop="AB">1</element>   <e prop="BC">2</element> </a> <a anotherProp="FGEH">   <e prop="HF">3</element> ...

Cairngorm and FABridge

I am looking for a good Cairngorm Tutorial that shows how to integrate FABridge into a Cairngorm web application. ...

Flex - SOAP Variables in Network Monitor but not making it to event handler....

I am querying a 3rd party web service and not all the data seems to be making it to the event handler. When I view the request/response in the Network Monitor I see a collection of data objects each containing two string variables (name, url) and two arrays (counts, breakdown). When the result handler receives the data and I view it in d...

Flex String replace regex problem

I'm hoping someone can see the problem in the following Regex replace example done using Flex: remainder=inputString.replace( "\\("+bracketContents+"\\)(\\s)*(and|or)*(\\s|$)+", ""); For the following example: Input: "a and (e or f)" the normal regex expression given above would be: \(e or f\)(\s)*(and|or)*((\s)+|$)+ ...

SQLite Parameters - Not allowing tablename as parameter

I'm developing an application in AIR via Flex, but I'm not seeing where I'm going wrong with SQLite (I'm used to MySQL). Parameters work, but only in certain instances. Is this part of the built-in sanitation system against sql injection? Thanks for any help! Works: sqlite "INSERT :Fields FROM Category", where the parameter is :Fields...

Centering item renderers in a HorizontalList

I am trying to center itemRenderers in a horizontal list if the number of items in the list is less than the maximum visible number. Has anyone found a good way to do this? See an illustration of what I mean if it is hard to picture. Thanks! ...

How to get Flex command-line compc to compile one source path when referenced images are at another directory?

We are having an issue with embedded images when using the compc command-line compiler to generate an .swc for a bunch of library classes. Our directory structure is like this: (some directory structure)/flexprojects/MyLib/src/ (flex packages and classes here) (some other directory structure)/myapp.war/image/ (image files here) Whe...

differences when compiling a project using flex builder and flex sdk

The following code compiles fine in flex builder 3, but throws an error when compiled using the command line and flex sdk 3.3. <?xml version="1.0" encoding="utf-8"?> <ww:TestApplication xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:ww="*" layout="absolute" backgroundColor="#FFFFFF" > <mx:Label x="10" y="10" tex...

Why does my TileList selectedIndex not get updated?

In the code below, the presentedAlbumIndex is used to control the selectedIndex of the TileList. Item "five" is initially selected. Whenever the button is pressed the first item in the array is deleted, and the presentedAlbumIndex is decremented. In theory, the selected index should stay with "five" every time the button is clicked (u...

Execute an external EXE from Flex/AIR or Java Web Application..

Hi, Need to execute an external EXE from either a Java web app (running on Glassfish on Windows Server) or from an Flex/AIR desktop app. Any suggestions, links? Thanks, ...

How to add Glow Effect Flex 3 Chart?

I created a custom component in Flex 3 that contains a column chart. I also added code that will allow the user to drill down on a column when there is underlying detail data. If there is no data, clicking on the column has no effect. I want to make the column under the mouse glow when the drill down functionality is possible as a visua...

Flex collision testing with hitTestObject

I'm trying to test clipping on two canvases. Both canvases are 100px wide. They're 20px apart. I've placed a label inside one and made it 200px wide. Scroll bars will show up on the canvas. When I don't have the label inside and use hitTestObject it returns false. When I place the label inside it returns true. Is there any way to alter t...

file flex air exec

i read this [link][1] thread . but currently i installed air 1.5.2 but cant be run fscommand() function is there any information? pls help me [1]: http://forums.adobe.com/thread/464862file flex air exec ...

Subsetting Flex Array

I want to subset an array.I have the following array public var sellAmount:ArrayCollection=new ArrayCollection([ {month:"Jan", sell:2000}, {month:"Feb", sell:5000}, {month:"Mar", sell:4000}, {month:"Apr", sell:6000}, {month:"May", sell:3000}, {month:"Jun", sell:9000}, {month:"Jul", sell:1100},...