flex

Using httpservice to call a PHP function which takes parameters

Hi, If you look at the link below, there is some PHP code called by Flex mxml through HttpService. The PHP code has functions, but the mxml code doesn't call a specific function. How can I use httpservice to call a specific function (in my case, one which takes parameters)? http://livedocs.adobe.com/flex/3/html/help.html?content=data_a...

Flex AdvancedDataGrid with Grouping, how do I get objects to appear under first GroupingField if the second GroupingField is null?

I am using an AdvancedDataGrid with two GroupingFields. The dataProvider has a list of objects with these two field values, but occasionally the second field value can be null. When it loads, the AdvancedDataGrid UI has a root folder (first GroupingField) and some additional subfolders (second GroupingField). This is all good. However, t...

Asynchronous function call in Flex

Is it possible to call a function asynchronously in Flex? I want to parse a file at regular intervals without blocking the rest of the application, what is the recommended approach for this? ...

Flex menuBar event when clicking an item that is not a subMenu

is there a way to handle menuEvents like the ones used in submenus but in top level menus that doesent have sub menus? and use a function like: private function menuHandler(event:MenuEvent):void { if (event.item.@data != "top") { Alert.show("Label: " + event.item.@label + "\n" + ...

Flex 3 togglebuttonbar word wrap

How do you word wrap the text in the buttons that are part of a togglebuttonbar? I have the following structure: what i find is that the words on the button text just continue and there seems to be no wordwrap setting on any of the various components. Any thoughts would be very welcome. Thanks, S ...

Cloning object in Flex ? Canvas Degrafa ? help

Hello guys, I have a Canvas i would like to clone. This canvas hold a Degrafa Surface with several Geometry shapes. I tried the naive approach of return ObjectUtil.copy(graph_area) as Canvas; TypeError: Error #1034: Type Coercion failed: cannot convert Object@63b1b51 to com.degrafa.geometry.Geometry. TypeError: Error #1034: Type Coe...

SharedObject (Flex 3.2) behaving unexpectedly when query string present in URL

Summary: The behavior detailed below seems to indicate that if your app at www.someplace.com sets/retrieves data via a SharedObject, there is some sort of .sol collision if the user hits your app at someplace.com, and then later at someplace.com?name=value. Can anyone confirm or refute this? I'm working on a Flex web app that present...

Flex databinding a function

Does anyone know how to programmatically bind a property to a function that isn't a getter? IE: I have a function that returns a translated string based on the identifier you pass it. How do I do this in AS3 rather than MXML? (reason being - I have a dynamic layout that I render based on XML and so have create and add all children progr...

Is it possible to remove properties from a dynamic class?

I have a dynamic ActionScript Class that is used to send parameters to a WebService. Some of these parameters are always present, so they are public properties of the Class: package { [Bindable] public dynamic class WebServiceCriteria { public var property1:int; public var property2:String; public v...

When I use a dynamic class for my WebService arguments, the public properties are not included

I have a dynamic Class that is a Value Object that is used to pass arguments to a WebService. It has two public properties: package { [Bindable] public dynamic class WebServiceCriteria { public var property1:String; public var property2:String; } } I set these two properties in one part of my applicati...

how to set background image to control using actionscript

Hi all, Is it possible to do with application or anyother control except image control ...

Should I use the Flex or Air SDK to develop an Air app?

I want to develop an Adobe air application. Whats the difference between using the Air SDK or Flex SDK and what are the advantages / disadvantages? My application will use a SQLlite database and PHP may be involved later if I turn the whole thing into a web app. thanks ...

How to put an event in dynamic creation on flex?

Please help. I want to add a click event on checkbox that i created dynamically so that i know what checkbox I click. Heres my code on action script: var myCheckbox:CheckBox = new CheckBox(); vbox.addChild(myCheckbox); How to add click event on checkbox? ...

Flex FileReference.download - is it possible to open associated application

Hi, When using FileReference.download() to retrieve a file from a server, I'd like to give the user the option to open the associated application directly rather than having to save it to disk first. Is this possible in Flex 3? And, if so, how is it done! Thanks, Mark ps. I've tried doing URLLoader.load(URLRequest) also, but no dice....

how to change css control font color using colorpicker

Hi all im using colorpicker for fontcolor. i want to know when i choose any color from colorpicker, all text color shuld change to choosen color. is it possible to use css to over come the probelm .thanks ...

flex datagrid problem

i have a data grid in my application and am pulling data from a MYSQL DB using php. is there a way to store all that data into an array and pass it to a function or is it possible to just store the data directly into an array instead of pulling it from the datagrid here is the code <mx:DataGrid id="dgUserRequest" x="150" y="10" dataProv...

Flex component like a multi-selectable Accordion ?

I'm looking for a component like a single-generation treeview that can collapse a section or expand any or all sections, but it would look like an Accordion: headings and canvas "pages". Obviously, each page would not take up the entire height of the container; they would be fixed height. Perhaps I am not using the correct terminology ...

Flex:How to retrieve the pre edited value of the cell of a datagrid to an itemeditor in a flex

I wrote a custom item editor for a datagrid in flex. My question is how to retrieve the pre-edited value of the datagrid cell after the item editor initializes and also in the custom item editors code. ...

Whats best practice for including external actionscript files in flex application

If I include a an external actionscript file in a flex mxml file, I get different behaviours at compile time depending on the method used. Using an mx script tag with a source attribute or an include statement, then compiling the file gives errors like: Error: Packages cannot be nested. If use import these errors go away and the file ...

Canvas, scrolling and special use case in Flex

Hello guys, I have a canvas of variable width and height with a maximum being 2K*2K This canvas current height and width vary depending on the user screen size. Usualy smaller than 2K*2K. If the user moves an element (free moving elements like child UIcontainer) inside the canvas at position greater than the current user available H a...