flex

in Flex DropDownList, is there a way to bind to a property of an item in dataProvider?

I have following code. <s:DropDownList dataProvider={_dataProvider}/> <fx:Script> private var _dataProvider:ArrayCollection = new ArrayCollection([{label:"one", data:1}, {label:"two", data:2}]); </fx:Script> I want to bind the data property of the selectedItem in the DropDownList. Is there a way to do this? ...

Flex 4 Panel Border Skin

I'm trying to create a skin for a Flex 4 spark Panel that will create a border on the left/right side of the panel that matches the header of the Panel. Basically a silver frame all the way around the edge of the Panel similar to the old Flex 3 mx:Panel. I've been experimenting with a skin file all day and can't get anything to work. ...

Error #2025: The supplied DisplayObject must be a child of the caller.

Hello, I am very new to programming in FLEX. I have inherited a FLEX 4 project that invokes web services to display data to the end user. My default package has one .MXML file, that has the component references to the Login screen (another .MXML file) and the Main screen (yes, another .MXML file). The login process works fine. I have...

I am only able to replace the first quotation mark in my str

Code: var myPattern:RegExp = /\"/; trace(a.replace(myPattern, "\\\"")); <TEXTFORMAT LEADING=\"2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">sdfdsfdsf</FONT></P></TEXTFORMAT> above im using that regular expression to escape the " in the string. however it only does it for the first ...

how can I update an AdobeAIR application without refreshing

In a data grid after updating the record the updated data will not come without refesh ? What can I do? ...

looking out for a web based process or workflow designer software

can any one suggest a tool or component to integrate with web based application with a workflow or business process designer ... ...

sql query validator

Hi, Is there any sql query validator in frontend side or in any language for validating the query syntax before executing in the database ?.In my current project i have to validate the the sql query in flex before it goes to back end ,coz it has to pass lot many layers before hitting database and the hitting the DB and coming back wit...

Flex 3 - Issues passing parameters through an event

Hello Community! I'm stuck with an issue and I cannot understand why it behaves like that... In a for loop, I'm passing the for index as an event parameter. However, the eventHandler is getting the wrong index, but the right target... Here's some code. .as class method: public function set dataProvider(a:Array):void { var x:int =...

Upload file to SQL Server from Flex

Hi, from my Flex app I want users to upload a .csv file to SQL server.I thought a possible approach would be: -upload file to the server -quality check the file there -send back the file to flex to sow it in a datagrid I am stuck in the uploading. I have the following code but I am always getting the 2038 i/o error. There is even no...

Draw a line on top of a column chart

Apparently, it is not possible to have a chart with several independant horizontal axis. What I am trying to achieve is : display a bar chart, organized by any category overlay a line (actually a single horizontal line) on top of it (to display some sort of threshold) I tried doing the following : [Bindable] public var columnsD...

Flex 3 Custom UIComponent Disappearing

Extremely frustrated with this. I've created a simple class that extends the UIComponent. I create an instance of this class in a parent class and utilise the 'addChild' method to add it to the parent. I've overridden the 'updateDisplayList' method of the extended UIComponent to add my own drawing routine using the 'graphics' object. ...

Find out deselected item in spark list with multiple selection

In a spark list I could use the change event to find out which item has been selected or deselected. The dispatched IndexChangeEvent object has the properties newIndex and oldIndex holding this information. But with multiple selection allowed this doesn't work anymore because newIndex and oldIndex could refer to indices of still selecte...

Flex binary String to ByteArray

On the server side, I have an array of objects. Each object has 3 integer fields and 2 binary fields. I've utf encoded the binary data and json encoded the array & sent it to Flex client side. On the client side, decoding data, I've got a String representing the binary data (utf decoded). Now, how can I convert this String to ByteArray...

Is content of webpage developed in Flex searchable?

Hi, If I developed my webpage entirely using Flex, is it searchable by Google and other search engines? Thank you very much. ...

Can I use a different ItemRenderer for different list items?

I have a Flex list and a custom ItemRenderer. I'd like to be able to have some items in the list use a different ItemRenderer (say, depending on the class of the item). Is this possible? E.g.: <s:List dataProvider="{_systems}" itemRenderer="myItemRenderer"/> Most items in _systems use myItemRenderer. But if element 3 of _systems is "...

Flex; recognize email addresses as object in a text field

I am searching for a way to convert an email address once entered in a textfield as an object like shown in this image on MS office outlook ; the point is that now in outlook as my cursor is positioned just after "[email protected]" if I click backspace I will delete the entire email address, as if it was one object and not simple tex...

How can I prevent line breaks between words and punctuation in Flex UITextField?

I am rendering html in a Flex 3.x UITextField. The problem I am facing now is that when punctuation is at the end of a word, it can sometimes be wrapped to the next line. For example: That which doesn't kill me makes me stronger ,so I became a developer. This seems like a bug in the algorithm to me. Is there a workaround? ...

Adobe BlazeDS Logo

Hello to all. I am using BlazeDS and I want to visualize it in a presentation. Therefore I am searching fo a BlazeDS logo. I only find 4-5 matches on google images, like this one: http://www.clemencanaria.co.cc/wp-content/uploads/2009/01/blazeds-logo1.png Is this the official logo? And if yes, where could I get an image with a better r...

VIM Key bindings for Adobe Flash Builder 4

I was curious if anyone knew of a way to get VI/VIM key bindings in Flash Builder 4. I know that I can just edit the files in VIM directly, but as I am just getting started in Flex - I would prefer to use the IDE until I get my feet about me. I am running Flash Builder 4 on OSX Snow Leopard. Any help would be greatly appreciated. ...

Find users residing between a specified distance (using user's zipcode)

Is there a way to find the radial distance using the zipcode? My task is to search the all the users residing with in a specified distance. I know the zipcodes of the users. Eg, users between 25 miles from the current location. I have other search categories, for which i am using mysql queries. I am unable to figure anything out fo...