flex

How can I know when a Button in a Flex DataGrid itemRenderer is clicked?

I have a DataGrid component that displays a few columns of data. It has one additional column that displays a Button that allows the user to take an action with regard to the record. <mx:DataGrid dataProvider="{myData}"> <mx:columns> <mx:DataGridColumn dataField="firstName" headerText="First Name" width="75" />...

How can I add spacing around a Flex DataGrid drop-in Button itemRenderer?

I have a DataGrid with an drop-in Button itemRenderer: <mx:DataGridColumn headerText="" width="135" itemRenderer="ActionButtonItemRenderer" /> However, the button extends all the way both the right and left edge of the DataGridColumn. I've tried messing with the width properties and paddingLeft and paddingRight styles of both the...

Alternative to Flex Framework

Is there an alternative ActionScript 3 lightweight framework out there similar to Flex, but not as huge. Flex is fairly large, and SWF's being no less than 150Kb big, I'm just thinking it must be possible to get something that have smaller SWF files as an end result. I've come accross AS Wing, and was curious if there's more. Thanks fo...

AS3: Tweensy's remove function pauses the tween of the tween's target's children

See title. Using Tweensy 0.2.2, Flex4Beta1, and FP10.0.22.87, is there a workaround, or something I'm just not getting? EDIT: Using stop, doesn't cause this problem, but I'm still curious as to why this is happening. ...

Flex-AIR: Make application with NO tab in taskbar?

I have an AIR app about half way done right now. I was informed by the client today that he does not want a tab to show up in his task bar. I already have this in place for new windows by making them lightweight. I do not know how to make the main window lightweight though. If there is not a way, is there a work around, like not not havi...

How to dynamically format Flex 3 textArea input

In my Flex 3 application the user enters IP addresses into a textInput object. As the user enters the numbers comprising the ip address I would like to add the '.' on the fly rather than waiting until latter, so that if the user types 127000000001 I would like the textInput control to display 127.000.000.001. I've been trying to make...

Flex progressbar controlled by forum entry

Lets say I have five text boxes and a dropdown box in my flex application, how can I make the progress bar fill up when there is text in each box, and the dropdown selected. For example, if there is input in three out of five of the boxes and there is a selection in the dropdown, then the progress bar would be 4/6 full. ...

Filtering data shown on linechart in flex.

Hi guys, i am working on a line chart on flex which enable me to view the progress of data according to the year. I have tried using a slider to filter but it doesn't seemed to work. any help please? i am not exactly filtering the dataprovider, but the alpha. My function will retrieve all the information from my array collection, but set...

Flash and Flex

I want to embed a Flash movie into Flex (Flex Builder 3), both using Action Script 3, and have my flash movie call functions in Flex and vice versa. Is this possible? ...

I need to what is the value selected in a checkBox.

<mx:CheckBox id="userlevel" x="118" fontSize="12" fontWeight="bold" y="127" label="Administrator"/> What should be the Alert.show(userlevel.selected) returns whether its true or not... but i need the label value. ...

Best way for Flex to communicate with C# backend?

What is the best way for flex frontend to communicate with backend writted in C#? The only communication channel in HTTP, so no custom sockets. I used SOAP in the past, but am concerned about performance since the large overhead of xml, and this application I'm currently working on will be pretty data intensive. Anything that supports ...

How to send xml flex to php via post method in <mx:httpservice >?

i created xml in flex after that creation i post to php via http service but when i add like xml in http service flex throws error msg like Error #1096: XML parser failure: Unterminated element." What did i worng ? How to send xml data flex to php ? plz refer me <mx:HTTPService id="createxml" method="POST" url="http://####/admin/?do...

DisplayObject snapshot in flex 3

i'm creating a visual editor in flex and need to let users export thier projects into Image format. But i have one problem: size of the canvas is fixed and when user add element which is out of these sizes some scroll bars added. And user continue working on the project. but when he want to take snapshot of the canvas he just get the vis...

Hidden Features of ActionScript3 / Flex

I found a lot of interesting info in the 'hidden features of...' series. I'm a AS3 developer so I want to add this question about AS3 as well for all the flash/flex developers out there. So, what are the lesser-known but useful features of AS3 and Flex framework that you know ? ...

Flex-AIR: ApplicationControlBar wont dock in Window?

I have an application control bar set to dock. I have the exact same one in an instance of Window and an instance of WindowedApplication, the one in WindowedApplication docks like it should the one in Window does not dock. Can anyone tell me why? and how to make it dock? Thanks! Here is the code if you need it: <mx:ApplicationControlB...

How to access mxml (Flex) DOM elements?

Is there a way to access the DOM-Elements of a mxml file in a way that you can in JS (e.g. using Prototype or jQuery)? I need to know if a top-level element has a child (sub-sub-...-childs) with a certain id. In JS (using prototype) it would be something like: $('tabs').select('[id="something"]'); Any ideas? ...

What's the best way to share data between components in Flex?

I have a Flex application that I'm working on for a new job. It's sort of a training wheels application -- I'm learning the language, and this isn't an app that needs to talk to a service in order to do its job. There are a few instances of combo boxes throughout the application that share the same set of possible values (say, a select...

How do I edit an item in a flex dataProvider with support for cancellation?

I have a DataGrid of objects, and I want to modally edit them; pop up a dialog, change the item, and if the user clicks "Ok", save the changes back to the original item, and if they click "Cancel", do nothing. It seems obvious that if I simply pass in a reference to the original object and change it using data bindings to the fields in ...

Flex 3: Is it possible to use a remote image as the icon for a LinkButton?

We are creating a LinkButton programmatically and would like to set it's icon to an image retrieved from the remote server rather than something embedded within the SWF. The .icon property expects a Class but I can't figure out how to create one equivalent to an @Embed but from a dynamically generated URLRequest or URL String. var myIm...

combobox and text input

I have to add a change event listener... I did add one something like this.... Private function Change(event:Event):void{ inputtxt.txt+=event.currentTarget.selectedIndex; vs.selectedChild=vsRef; } <mx:TextInput id="inputtxt"/> <mx:Button id="searchBtn" label="Search" change="Change(event)"/> This does nothing for me though...