flex

How do I show/hide a row in Flex AdvancedDataGrid with hierarchical view, but flat ArrayCollection dataProvider

I am working on a Flex AdvancedDataGrid with a flat ArrayCollection dataProvider. The requirement is that when the root nodes is closed, the root row should show a subtotal data and when the root nodes is opened, not show the subtotal data. Anyone has a suggestion how to do it? Thanks, Patrick ...

Is it possible to create a separate file for httpservices in flex and what are the best practices

Hi I am new new to flex development. I am building a flex application which uses rest APIs. Right now I have created different for different API calls (login, logout, search etc.) And all these services are in main mxml application file. I am wondering if I can create a separate mxml file like services.mxml that I can use to call any...

popup editor for datagrid items - hangs the browser

i've got a pretty straightforward thing: a datagrid which renders some items. clicking on an item would bring up a popup editor (as the item has lots of properties and may not be edited right in the datagrid). the popup contains just a form and a [Bindable] reference to the item it edits (which is passed from itemClick handler of the da...

Error: Cannot access a property or method of a null object reference in flex

Hi, Getting error while run the checkBox item renderer in advanced datagrid with out data. Error: Cannot access a property or method of a null object reference. Please find the below code: ** public function set listData(value:BaseListData):void { _listData=value; _dataGrid=valu...

datagrid and static dataprovider

Hi, I'm trying to get this code working, any help would be greatly appreciated. <mx:DataGrid x="359" y="221" width="623" height="176"> <mx:dataProvider>   <fx:Object name="Garbage Collection" code="7777" hours="2"/>   <fx:Object name="Road Repair" code="8888" hours="6"/>   <fx...

how to use request parameter with special character in HTTPService - Flex

Currently I have : <mx:HTTPService id="userLogin" url="https://api.localhost/api/user/login/" method="POST" resultFormat="e4x" result="doSomeThing(event)"> <mx:request> <email>{loginUser}</email> <password>{loginPassword}</password> </mx:request> </mx:HTTPService> instead of this I have par...

How to isolate ProgressEvent source?

I've added a ProgressEvent listener to an instance of FileReference. At different times in the code I call both upload() and load(). How can I isolate the progression event of only the upload method? ...

How to embed "Share on Facebook" button into Flex application?

I'm trying to duplicate the behaviour of the "Share on Facebook" button from Youtube. Basically, inside a Flex app I'll have a button and when I click it I want a popup that enables me to post something on the wall. While it is possible to make a call to javascript to open the pop-up I want to be able to set the images and the text of ...

Has anyone set up OpenX (and enabled OpenX Market) on a Flex 3 website?

Has anyone set up OpenX (and enabled OpenX Market) on a Flex 3 website? If so, I would like to get in contact with you. Thank you. -Laxmidi ...

Recursively Parse XMl in Flex / As3

Ho, how can I recursively analyze/modify XML in Flex / As3? Let's say I have this XML: <div> <P ALIGN="center"> <FONT FACE="ArialV" SIZE="15" COLOR="#000000" LETTERSPACING="0" KERNING="1"> </FONT> </P> <P ALIGN="center"> <FONT FACE="ArialV" SIZE="12" COLOR="#000000" LETTERS...

Timing Format in Flex "24-hour clock" and "12-hour clock"

Hi, Kindly guide me. Timing Format in Flex "24-hour clock" and "12-hour clock" if "24-hour clock" Button is selected, the control should convert times to 24 hour clock time. For example, if 3:45 p.m. is entered, it should be converted to 15:45. if "12-hour clock" Button is selected, the control should convert times to 12 hour clo...

custom list component with an "empty spot" item renderer

I need to make a custom list based component that orders the items in its data provider in tile format (using tile layout). Also, the component should have a maxNumberOfItems, based on which a number of "empty spots" must be rendered if the length of the data provider is less than maxNumberOfItems. What I do not want is affecting the da...

Flex Textfield doesnot gain focus when cursor is in text field of iframe

I have a web page which has a SWF file embeded. I have an issue with the focus. Steps to reproduce: 1)Click on a HTML Text Field which is inside a Iframe 2)Click on a Flex Field. 3)Begin to type some text. Expected Result is the entered text should go in the Flex TextInput field but the actual Result is it goes into HTML text field. ...

Sychronous web service calls in Flex

Does adobe flex supports sychronous web service calls .... justify your answer??? ...

Migrating CSS from Flex 3 to Flex 4

Is there a guide or document that deals specifically with migrating CSS and style attributes from Flex 3 to Flex 4? I have an application that I'm keeping on the 2006 namespace, but I'm having trouble with a couple concepts, like the halo only styles, the CSS namespacing conventions, and styling child controls. ...

When closing flex application it clears clipboard

When open flex application inside flash player in browser. Then copy to clipboard some data. Then close tab and as a result clipboard is empty. How to prevent clipboard clearing on application close? [UPDATE] It looks like it works correctly on Windows, but clears clipboard on linux and mac. ...

Flex: how is loose coupling achieved by using interfaces?

Ive looked this up in a few different locations, but to be honest, i dont really get it. I get what loose coupling is, but not how interfaces in Flex would help to achieve it? ...

Flash / Flex virtual tour of room

Hello! I want to make a virtual tour of a room in Flash / Flex. How can this be achieved? Firstly, is it enough to have pictures taken from a still point? If yes, how can I turn them into a real tour? Also, is there a library for this kind of thing for AS3? Thank you. ...

Integrating a Flex 4 Application in a WPF c#.net form.

I have two Local applications that i want to integrate into one application. One is a flex 4 application that is compiled as an AIR application so it has a .SWF file extension and a Windows WPF application. The two applications have to constantly pass values between each other constantly. If possible, I would love to avoid a asp.net ser...

Flex Date issue with Timezone

Hi All We have a search utility that needs to search by date: So I type in a date "04-20-1982" in the search field. In the code: Alert.show("string date::"+message.searchKeyword); dateOfBirth = DateField.stringToDate(message.searchKeyword,"MM-DD-YYYY"); Alert.show("date::"+dateOfBirth); The first alert prints as string date::04-20...