flex

Flex RemoteObject - handling multiple requests

I have a couple of remote object methods that I want to respond to in different ways depending on the context, but I'd rather not set up a bunch of different RemoteObject aliases. Any advice on doing that? Some background: Let's say I have an admin application that displays sales stats in different ways. The remote method looks like:...

Implementing drag calendar with Flex and Rails

Hello, I want to implement an application in Flex/Rails in Background as I know these two languages but I'm fairly beginner with Flex and Intermediate-to-expert with Rails. My application will display a calendar like object by which there are say 5-day week or 7-day week or a month (30-days) and in each day there will be some data such ...

Trying to change Flex 3 ToggleButtonBar dataprovider on user or admin log in

I'm trying to change Flex 3 ToggleButtonBar dataprovider on user or admin log in. I'm trying to use 2 viewstack, and I've got a component where the login form is in the component. What should I do to define the dataprovider based on user log in? ...

Data for the Columns in Flex

<local:CheckBoxDataGrid id="dg" allowMultipleSelection="true" x="118" y="151" width="557"> <local:columns> <mx:DataGridColumn dataField="firstName" headerText="Select" width="50" sortable="false" itemRenderer="CheckBoxRenderer" > </mx:DataGridColumn> <mx:DataGridColumn id="userID" headerText="User ID" /...

array collection filter flex

hey guys, is it possible for me to filter only a certain column in a arraycollection but still displaying the other values in a datagrid? ...

Flex Number Format

Hi all, I want to format a number in indian format. for example, x= 123456 should be formatted as 1,23,456. How can i do it in flex? Thanks, ...

Flex: AvancedDataGrid ..Group By?

I have an AvancedDataGrid that is fed with data like this: <stat associate="Henry Smith" date="07/08/09" amount="1"/> <stat associate="John Doe" date="07/08/09" amount="1"/> <stat associate="John Doe" date="07/09/09" amount="2"/> I want it to be so that when you click on a date in the date column, the associate and amount column only ...

Flex: Testing UI components at the click level?

I've been working on a Flex component and I'd like to write some automated tests for it. The trouble is, the UI testing tools I've looked at (FlexMonkey and Selenium Flex API) don't simulate "enough": Most of the bugs which have come up so far relate to the way Flex deals with dragging and dropping, which these libraries can't simulate ...

Forcing Flex to update the screen?

This may be a bit of a beginners question, but I can't for the life of me figure it out. I'm using flex to develop a GUI for a large project, specifically a status bar along the bottom. Within my StatusBar class is a ProgressBar, which other classes doing work can tell to update(change bar completion and label) as they progress. The pro...

Flex CheckBox in Datagrid

In the followin flex Code : Also viewable at : http://www.cse.epicenterlabs.com/checkBoxDg/checkBoxDg.html 1. Add a row in datagrid by clicking on "AddRow" 2. Click on "CheckDg" to see the values of all the checkboxes - it shows "checkBox57" or "checkBox64" or some similar string 3. Now, "select" the checkBox in the first row. 4. ...

Clear validation on textInput when validation is not enabled

Hi, I've created a custom textInput componenet that handles it's own validation using a private validator. The validation is enabled depending on the state of the component i.e. validation is enable when the components state is "edit". However, when the state changes from edit the internal validator is set to not enabled but the vali...

JQuery: Is there a way to do Flex-style data bindings?

Several new UI/Query frameworks allow you to "bind" UI elements to data structures. When data in the structure is updated, the change propagates to the UI element, automatically. Some examples of this include the [Bindable] tag in Adobe Flex, and the "Bindable LINQ" extension for .NET . Is anyone doing this in JQuery? ...

Flex 3 Hiding "764 bytes after decompression" trace statements

Hey, i'm working on a flex project where we load in a bunch of swf files from a zip archive using fzip. And whenever i'm running in debug mode, I get a whole bunch of trace statements saying like, [SWF] filepath - 251 bytes after decompression I'm just wondering if anyone knows how to hide these statements in the output window as there...

Inherited Classes and Dynamic Views in PureMVC (AS3)

I was wondering best practices for views of inherited classes in PureMVC in this situation: Multiple classes inherit a BaseClass (lets say InheritedClass1 and InheritedClass2) Each InheritedClass has a respective view (derived from a base view class, but each unique) With a given dataset (lets say ArrayCollection of InheritedClass1/2 O...

Populating ArrayCollection with HTTPService

Hello, I am creating a RSS Feed application based on a data, and I have the following: I have an ArrayCollection that is pre-populated with data. I am sorting through the ArrayCollection, get 1 piece of data (condition), and need to connect to an RSS feed which returns me the title, and I set my ArrayCollection in correspondence to con...

Parent-Child Constraints

Example: var circle1 :Canvas = new Canvas(); var circle2 :Canvas = new Canvas(); circle1.addChild( circle2 ) circle1.scaleX = 2; After the example before when Flash will render circle2 because it is child to circle1 it will be scaled to. Is there a way I can scale circle1 without affect circle2 or what can I do to circle2 so it can h...

how to read particular xml value using flex?

i used httpservice for read xml get full xml but i want particular xml fled value only like first node id only how can i split xml ? <mx:HTTPService result="getid(event)" id="xml_coupon" url="###" useProxy="false" resultFormat="e4x"/> public function getid((evt:ResultEvent):void { var id:number=evt.result.id; ...

Encrypted Video Playback Adobe AIR (Flex)

Suppose you have an encrypted video file and the associated AES key. Is it possible to play that video in a flex AIR application without saving the decrypted version of the file? How? ...

How to display XML data (extracted from PHP) in an Adobe Air Application ?

Hello I would like to create a small Adobe Air application which would extract XML data from my site and display it in my Adobe air application. I have the xml part setup, when i run the xml file, it displays the results in the browser. Now what i need is to display the same results in my adobe air application. For e.g. I have a simpl...

I need to get the particular values in Flex DataGrid Column.

Let me explain the situation... dg.selectedItems gives me all the values selected, but if i need one column names value alone then what should i do. <mx:DataGridColumn dataField="1" headerText="Email" /> ...