flex

Flex: Threaded Comments component

Hi, In continuation to my earlier post on having threaded comments, I have some updates and changes as well. One of the functionalities in my current flex application requires me to maintain a comments section. Here, the users can post the comments and the replies to existing comments. All I want is like the usual thread style commenti...

Flex DataGrid Column Width

In my flex app I store the widths and visiblility of columns in an xml file. When the app loads it reads from the xml file and sets he columns values as applicable: for(i = 0; i < columnsOrder.length; i++){ newOrder[i] = myDG.columns[Number(columnsOrder[i]) - 1]; newOrder[i].visible = (Number(columnsVisiblity[i]) == 1); newO...

Keyboard Application - Best way to have multiple buttons add letter to textinput? Use event handlers?

I'm working on an application and I am building a "Keyboard" component for it. There are 30 keys on the keyboard and it doesnt seem to make practical sense to create an event handler for each button. When the button is clicked, its label should be sent out to a function which adds it to a textinput field. Should I just create a "click...

Flex: Access member variable by using a variable in the name

How can I access the member variable of an object by using a variable in the name. Example: Entries Object has properties 1, 2, 3, 4, 5. Normally I would access them by var i : int = Entries.1; var i : int = Entries.2; However, if I have a loop for (var j : int = 1; j < 6; j++){ trace(Entries[j]); } does not work. Entries.(j)...

Flex container or scrollcontrolbase

I'm looking to build a container that can contain a stack of synchronized time-series data visualizations. This can include line charts, event schedules, and any other similar items. I want the end mxml code to look something like: <timeCanvas> <lineChart data=foo> <lineChart data=bar> <userAvailabilityChart data=baz> </timeCa...

Flex custom button component

I want my custom button to look like the button sample below. More specifically, I want the width of the button to be determined by the width of the largest word in the label (i.e. width of "Elongated" in my example). The label must wrap, not truncate. And I want only one pixel between the top edge of the icon and my button's top edge. ...

Getting measured width of a button label

Is there a way to get the measured-width of a button label in flex based on its style properties at runtime? ...

Change mxmlc from swf to html on ubuntu

When I use mxmlc to compile my mxml file, I get swf file. Now, I want to change the config to make mxmlc compiler generate html file instead, as we can do in Eclipse or Flex Builder. Any solution? Thanks! ...

Adobe Flex Builder WSDL classes autogenerator generates weird files

Adobe Flex Builder WSDL classes autogenerator generates wierd files. For example: http://ws.cdyne.com/WeatherWS/Weather.asmx?wsdl After importing it generates these files: ArrayOfForecast.as ArrayOfWeatherDescription.as ArrayOfWeatherDescription0.as BaseWeather.as BaseWeatherSchema.as Forecast.as ForecastReturn.as ForecastReturn0.as...

Positioning Flex/AIR Desktop App Window to the bottom right corner

Any clues how this can be achieved? It needs to work on all resolutions .. is there any parent/stage object available to find out the resolution of the system? ...

How can one use existing tools to facilitate the process of changing data on the server using the DataGrid?

It is very simple to retrieve data from a database and display it inside a DataGrid. However, what are the current practices to push the changes in the DataGrid back to the database? One can achieve this by inserting a lot of meta information, however, it is very tedious and not reusable. ...

UIComponent extended class isn't showing UIComponent extended class

I have 1 class (that is extending a UIcomponent) that is representing a component. In that component I create different instances of another class that is also a UIComponent but this class doesn't show up in de first class. I see that it is running and that it has the correct hights but I got the feeling that it doesn't show up with this...

Flex: Buttons in datagrid, is that posible to access properties of the column

E.g. I have following datagrid <mx:DataGrid x="331" y="16" height="132" width="419" id="me_claimed" dataProvider="{users.myclaims}" useRollOver="false"> <mx:columns> <mx:DataGridColumn headerText="Claimer" dataField="opponent"/> <mx:DataGridColumn headerText="Rank" dataField="rank"/> <mx:DataGridColumn headerText="Dismiss ...

how to get a Flex array element

Hi all I have an array like this public var dataAL:Array=[ {Kiv:"cash", jan:26,janTarget:28,feb:27,febTarget:26,mar:30,marTarget:32,apr:31,aprTarget:32,may:28,mayTarget:29,jun:46,junTarget:32,jul:37,julTarget:39,aug:40,augTarget:42,sep:41,sepTarget:42,oct:48,octTarget:49,nov:40,novTarget:41,dec:38,decTarget:40}, ...

Flex Combobox - Edit/Delete an option

Hi, I'm using a combo box control and the dataprovider is set as an XML. After the dataprovider is set, I want to edit the text of the first option and also I need to insert an item in the second position. How can I do this? Using an ItemRenderer? Please give your suggestions. ...

Dynamic url in HTTPService not working

Hello and thanks in advance for any help you can provide. My AIR application queries a webservice to see what components to build. A sample of the XML returned is: <item> <type>EventList</type> <url><![CDATA[http://dashboard/cgi-bin/dataService.pl?type=ManagedEvents]]&gt;&lt;/url&gt; <index>4</index> <title>Index 4 eventlist</titl...

Alerts, Dropdown Calendar of DateField, Cursors resulting in null value references once embedded...

I have a Flex application embedded in a Flash application, which was working fine and currently works fine if not embedded. As of last Friday, when embedded the Alerts do not show (no error, just nothing), DateField Calendar dropdowns do not show (null value reference of DateField), and dynamically showing the busy cursor errors (null v...

RemoteObject code in Actionscript instead of mxml

There another person asking the same question here: http://stackoverflow.com/questions/987130/how-do-i-call-a-remoteobject-method-from-actionscript but what I need is to add more than one method to the RemoteObject. Using the other question's example but adding one more method, how would this look in actionscript? <mx:RemoteObject id...

Flex DataGridColumn display multiline string data

Is it possible to display a multiline string in a Flex DataGridColumn? i.e. Display: Text line one. Text line two. I've tried putting "\n","\r","&#13;" when storing the string but nothing seems to work. Currently only "Text line one." is displayed and the rest is hidden in the cell. I would prefer not to use "wordWrap=true" ...

Flash Image gallery

Hi All I've to create a flash image gallery as same as like at the given link: http://movies.yahoo.com/summer-movies/shorts/1810030254 Can someone suggest me any tutorial for or link for solving the given purpose. Thanks in advance ...