flex3

Flex Databound List with ItemRender - Reorder resets CheckBox Values

Hi I have a Flex List which is databound to a Array. My problem is that when I reorder the List using the built in dragMoveEnabled, the values are reset to the original values. I assume I need to somehow do a two-way databinding but I am not sure how. <mx:List width="100%" top="20" id="uiItemList" dragMoveEnabled="true" bottom="0...

In Flex 3 Using a List Component

How do I have one a background image for each list object and a different background image on rollover. ...

Global flag to check if any component has been edited in Flex.

I need to use a global flag. This flag will be set whenever I change my datagrid i.e. add/ update rows, change checkboxes, radiobuttons, etc. in my screen. Also, on what event can this global variable be set. Will "change()" or "click()" work. Need some idea in this context. ...

Flex - returning a window to its original state

I have been tearing my hair out now for a week or so, it's time I sought some help... I am coding a small app to show me the next train leaving the station. Normally only the hour of the next train is shown, but if you click on the prefs button, the application window enlarges and a datagrid is shown with the trains and hours. Clicking ...

to create Whiteboard component

How do I create a simple drawing board/whiteboard functionality in Flex ? ...

How to support both HTTP and HTTPS channels in Flex/BlazeDS?

I've been trying to find the right configuration for supporting both http/s requests in a Flex app. I've read all the docs and they allude to doing something like the following: <default-channels> <channel ref="my-secure-amf"> <serialization> <log-property-errors>true</log-property-errors> </serialization> </channel> ...

to Delete item at runtime

Hi All, I have created some shapes dynamically at run time by mouse drag, Now i want to delete any selected item the white board.How can i achieve that. Currently i am able to delete the last drawn item through "removeChild()" method, but not the previous items. Please help. Thanks in advance. ...

Linking two Flash Player windows together...

We have a Flex 3 application of which the main .swf is running in Firefox. Lets call this application Main.swf. I'm required to create a secondary .swf, call it Panel.swf which is to be embedded in a separate Firefox popup window, which will be invoked via ExternalInterface calling JavaScript from Main.swf. Is it possible to link Main....

Flex Popup Window: Stack Overflow?

I'm somehow creating a stack overflow in Flex 3...I'm trying to get data out of a modal dialogue window as such: Main application: var myPopup:MyPopup; function buttonClick( event:MouseEvent ):void { myPopup = MyPopup( PopUpManager.createPopUp( this, MyPopUp, true ) ); myPopup.addEventListener( CloseEvent.CLOSE, handler, false, 0, tru...

move image in text area in flex

Hi Guys, I am trying to make a text editor in Flex. i can move image on mouse click. Problem is it moves with the key up or down handler. But it moves out of text area after the last line in textarea. And it also doesn't move with scroll. Pls give suggestions for these problems. Thanks. Regards, Shivang ...

Flex zoom and scroll problem

Hi All, i am required to zoom a canvas through Hslider. The problem is after zooming the canvas i cannot scroll to the extreme left and top of the canvas i.e some part of left and top canvas are not visible. i cannot find the reason. The source code for the example is given below. " import mx.events.SliderEvent; private functio...

Get information of Tabs open in TabNavigator in flex

i am opening tabs with click event on tree list view. Problem is that i do not want open tab Pista as u can see in image again. i want to focus that open Pista tab. Pls give ur suggestions. Thanks. Regards, Shivang ...

Flex: Do *anything* with the selected text in an mx:Label or mx:Text?

Flex's text-editing controls (mx:TextField, mx:TextArea) offer functions for doing "stuff" with the selected text (selectionBeginIndex, selectionEndIndex, setSelection), but the text-displaying controls (mx:Label, mx:Text) don't seem to offer anything of the sort. After some tinkering, I've tried subclassing Label then writing functions...

How can I use SWFLoader purely from Actionscript in Flex 3 and dynamically load content?

Hi Friends! I'm doing a Flex 3 project wherein I've to load SWF based on the availability of required file. And the loaded SWF file will be placed in a container (a Panel) at a particular location i.e. coordinates. This I don't want to do in MXML as the SWFLoader container shows a cross marked box if the file is unavailable. So friends...

flex keyboard insert mode overtype or insert

Hi, In my flex application, I would like to know the edit mode of insert key programmatically. In the status bar of the application there should be an indicator for the mode in which currently working. As the insert key is toggle key, how can i know the mode of it? Thanks in advance. ...

How do I pass error information through an HTTP Request in Flex 3?

My Flex3 application must display meaningful application-level error messages from the server. This article article says that Flash has severe limitations on receiving error info, whether as status codes, response body, or response headers as described. I can use any of these from my servlet. But apparently none are accessible! But the...

ActionScript: When are event handlers executed?

When, in ActionScript, an event is dispatched: foo.addEventListener("some event", someHandler); foo.dispatchEvent(new Event("some event")); At what point are the event handlers executed? I ask because I caught this at the end of an Adobe developer guide: Notice that some properties are assigned to the [AsyncToken] after the call ...

Styling a DataGridRow based on dynamic cell content?

Hi, I have a DataGrid that is populated by an xml response of a web service. Currently, I poll every 5 seconds against the web service to maintain data freshness, as such is essential. Now, this polling can can change the data in one of the columns of the DataGrid, and I would like to style the rows with colors based on the content of a ...

ActionScript event handler execution order

I have been trying to understand the way ActionScript's events are implemented, but I'm stuck. I know that AS is single threaded, which means that only one event handler will be executing at a time, and also means that handlers will be executed in a deterministic order*. For example, consider the following code: 1: var x = {executed: ...

flex textflow dyniamic height

Hi, In my flex application I have scenerio like this: parent to child Vbox->Canvas->Sprite->Textflow In this scenerio now I need to have dynamic height of the textflow & its parents. Here the root parent is the itemrenderer of the datagrid I have. I need the heights of rows to be adjust according the content in it. Right now I am imp...