flex3

Why is iconField ignored for branch nodes with the Flex Tree component?

I'm using the iconField property of the Flex Tree to dynamically set the icon that a node should use. This works fine for leaf nodes but for branch nodes it doesn't seem to respect my iconField and instead just shows the default folder node. Here's a simple repro: <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absol...

LCDS Vs BlazeDs

Hi Any one can explain the difference between the LCDS and BlazeDs. Both are supporting HTTPService,Webservice,Remoting service. So why we need BlazeDs or LCDS? ...

create components dynamically

Hi, I have requirement in AdvancedDataGrid. In Advanced Data Datagrid with columns checkbox,textfield, textarea,button,radiobutton. and ADD Button and SUBMIT Button. When i click on ADD Button, those above all fields are need to add dynamically in next row.If i click 10 times on ADD Button, 10 rows with all above fileds need to be adde...

Flex: force display of control's errorTip (error toolTip) on validation failure

When a Validator (i.e. StringValidator, NumberValidator, etc) dispatches an invalid event due to validation failure, the errorString property of the source control (i.e. TextInput) is set to a non-empty string which creates a red border around the control and shows an toolTip (errorTip) ONLY when the mouse hovers over the control. Quest...

Embedded font alignment issue in Flex 3

Hi guys, I'm trying to fix an issue I have with Flex and some embedded fonts... To explain... I have a small Flex video player that displays a text message at the end of the video. The text is dynamically loaded when the player starts... I had originally embedded the font like this: [Embed(source='fonts/times.ttf', fontFamily='Times Ne...

Flex3 Combobox doesn't display itemRenderer when closed.

I have a combobox with a custom itemRenderer. The ItemRenderer displays some images and a label. When the combobox opens, the items in the dropdown list display perfectly, but when its closed, the combobox doesn't use the ItemRendere, but shows "[object MyItem]". Do I need another attribute to indicate that the ItemRender also needs to b...

Adobe Flex 3 List Control Selection and Change Event Problem

Hi I created a list control at runtime as following: var myList:List = new List(); ListArea.addChild(myList); myList.percentHeight = myList.percentWidth = 100; myList.itemRenderer = new ClassFactory (components.renderers.myRenderer); myList.dataProvider = myDataArray; myList.addEventListener(EVENT.CHANGE, historyBarClickHandler)...

Flex 4 <mx:Component> could not resolve

Hi, I am using flash builder 4 to run sample application from "Getting Started with FLEX 3", but the code can't run because there is one place that FB4 can't resolve, I guess this is because the library has been obsolete but after a tons of search I can't find the solution. Thanks. Bin ...

Editing an XML document in Adobe Flex?

I am building a custom structured editor for an XML document in Flex. What I need is a way to do list operations on an XMLList with a minimum of fuss, using either an editable datagrid or a popup form (UI-wise, it doesn't matter which. Please don't focus on that). What is a good idiom for doing this? Here is an example structure, wit...

How do I create a bidirectional data binding in Flex 3?

I need to bind a property to an edit control and have the control write its value back to the same property. The problem is, I'm setting the source value before the control is created: <mx:Panel> <mx:Script> <![CDATA[ [Bindable] public var editedDocument: XML; ]]> </mx:Script> <mx:TextInput id="d...

why overloading not support in Actionscript?

Hi, Action script is developed based on Object oriented programming But why it is not support function overloading? Flex is support overloading? If yes, please explain briefly with real time example Thanks, Ravi ...

Play a sound for a certain duration

Hi, I have a mp3 file and I would like to play it from one position and for a certain duration. I have first used the Sound class, the play method where I can specify the start but not the duration. I have looked then at SoundEffect class where you can specify a duration and a startTime. However I do not know how to play it from a AS...

Adobe Flex 3 : Fault Event doesnt return XML Feed sent from Server

Hi I am working on a flex application which communicates with a Rails backened. When i request for some data, It sends back xml feed. In some cases, if given parameters are not valid, then rails return an error feed with status code = 422 as following email is wrong But I dont get this feed in FaultEvent of Flex, How could i read erro...

Adobe Flex and Air Connecting to a network.

What Approach can you use to Connect Adobe Air Application to a Local Network? Examples of function is send a message to other computer that is connected to a network, sending files or viewing their desktop. Thanks! ...

flex3 type casting

Does anyone know the real difference between the two ways of type casting in Flex 3? var myObject1:MyObject = variable as MyObject; var myObject2:MyObject = MyObject(variable); I prefer to use the second method because it will throw an Error when type cast fails, whereas the first method will just return null. But are there any other ...

How can I improve the speed of this Adobe Flex script?

I am working on my first Adobe Flex application, and have a code section that appears to be running very slowly (but it does function properly!). CC_Output is a text control, all the other controls are checkboxes (CC, CC_Duration, etc.) Any help would be greatly appreciated! <mx:Script> private fun...

changing children of dynamic created states

I'm building an Xml-driven application. I create new states in a seperate actionscript-class. These states all contain a DataGrid. I can switch the states in the Main.mxml. But now I would like to access certain children of the DataGrid. In this case I would like to toggle the visibility of GridItems, from a Button in the Main.mxml. ...

Tree dataTipFunction tooltip Change position,Flex3

Hi, I am doing dataTipFunction on Tree in Flex3 Air, At present the tooltip hides the present node, i need to reposition the tooltip above the node, how can change the x,y position of the tooltip. Thanks in Advance ...

Flex: What is the best way to place an image in specific coords on canvas

Hi, I know that the question may seem very easy. I am trying to display an image on canvas. I need to do it in AS, and also I need to locate image in specific coordinates. Could you please suggest how to do it ...

How can I trace every event dispatched by a component or its descendants?

I am trying to determine what events I need to wait for in a test in order to ensure that my custom component has updated all of its properties. I was using VALUE_COMMIT, but for some reason that isn't working out for me. So, I want some easy mechanism for tracing every event dispatched from a component. Is this possible? ...