flex

Visual list of Flex components

Is there web page (Adobe or other) that visually shows all the available Flex UI components? (similar to Java Swing's A Visual Guide to Swing Components) ...

Associative Vectors?

Just a short question: can Vectors be associative, like Array's? probably not, because I tried, but maybe there's a workaround...? ...

Is Events Bubbling pattern applicable to hierarchical model?

Lets consider following example, I have "Document" object which contains collection of "Person" objects and each "Person" object has collection of "Address" objects. When one of the "Address" object changes I need to call server-side method to calculate optimal path between all addresses of a person(whose "Address" was changed) and updat...

Flex: Binding to the Height of the UITextField

Hi, I'm having problems binding the height of a UITextField to the y of a VBox and the height of the TitleWindow. I'm trying to adjust the height of the TitleWindow and the height of the VBox so, that the UITextField doesn't overlap the other content. Alternatively, I've tried setting the height of the UITextField to an explicit heigh...

Flex 3: How Can I Position Text on an Angle?

Hi, I'd like my text to be positioned on a 45 degree angle. Is there an easy way to do that? (In the worst case, I could always make a png out of the text). But, I hope that there's away to do it in Flex. I don't need an animated effect. var angleText:Text= new Text; angleText:Text.text = "My text is angled!" angleText:Text.x= 200; ang...

AdvancedDataGridItemRenderer systemManager property is NULL

I have an AdvancedDataGrid. Occasionally, when I roll over the cells immediately after changing the dataProvider, I get a null pointer. The null pointer is caused by the systemManager property of the item renderer (AdvancedDataGridItemRenderer) being null so... ToolTipManagerImpl.createTip() is setting sm to null on line 831 line 831 l...

Flex VBox border

How do I add a border to a Flex VBox? My VBox is the renderer of a List. I've tried the following without success (in particular VBox's borderVisible="true" borderStyle="solid" borderColor="0x888888"): <mx:List id="myList" dataProvider="{myData}" width="100%" height="100%" variableRowHeight="true" verticalScrollPolicy="a...

Major bugs in SWFAddress

I found a couple of rather glaring bugs in SWFAddress, involving IE-based browsers. Both of the following occurred in SlimBrowser (15,000,000 downloads on Cnet) and one in Avant (also several million downloads on Cnet). Both bugs occur when returning to the original startup screen of a flex app via the back button. Both of them are rep...

flex 4 remove Rotate easing

I'm trying to animate (rotate) an image in flex4 but it seems that flex is adding easing to my animation by default. How can I over ride this so my rotate doesn't have any easing. Here the line of code I'm using <s:Rotate angleFrom="0" angleTo="1080" duration="10000" autoCenterTransform="true" /> ...

How to listen for dispatched events from container children?

I'm using an accordion container that has it's creation policy set to auto. One of the accordion's children is a spark border container that has a data grid within it. Currently, I'm using the data grid's creationComplete property to call a function; similarly, I'm using the dragComplete property to call another function. How can I add...

Flex general architecture/logic advice needed

Hi, I've got an architecture/logic question. This is what I'd like to achieve: a) I've got three buttons in my main app. b) When you click any of the buttons, a customs component based on a TitleWindow opens. c) In the titleWindow is a yes/no selector. d) If the answer is "yes", then I want to change the color of the button that w...

Flex 4 error handling - how to know which piece of code caused the error

Hi, this question is about how to create useful log information in a .swf that should be send to a serversided log. I have read http://stackoverflow.com/questions/101532/how-to-catch-all-exceptions-in-flex and was very happy about the new UncaughtErrorEvent. But it is not as useful I thought first: You can not get a stack-trace out of...

Assign Xml Values to dynamically created components

xml values are stored in 'arr' array collection. depending on the length of the array stored, the below described components are created and assign those values to relevant components dynamically. For Example: AdvanceSearch.mxml is one component, and another components as advanceSearchAtom.mxml. within 'advanceSearchAtom' has some sub ...

[mxmlc] Error: null, while compiling resource bundles under Linux with hudson

I am using Flex 3.5.0.12683 with hudson CI server and Ant to compile our project. While compiling resource bundles for this project I am having problems. With root user everything is compiled successfully but when I am trying to compile my flex project with hudson (ant) it fails with: compile_resource: [mxmlc] Loading configuration fil...

How to implement radion button with check box in one tree in flex 3.0

Here is main Application file <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initList()"> <mx:Script> <![CDATA[ import mx.managers.PopUpManager; import mx.messaging.channels.StreamingAMFChannel; import mx.events.ListEvent; import mx.co...

Flex: creating a multi column navigation bar for viewstack

I have created a Viewstack and using a Tile component and repeating LinkButtons I was able to make a multi column navigation with the viewstack as the dataprovider. My question is can this be done better? My code is below and I am wondering if I took the long way around this approach. <?xml version="1.0" encoding="utf-8"?> <s:Applicatio...

Flex Error on Simple Custom Event when Implemented in Actionscript (But not in MXML)

Hi, I'm trying to learn how to use custom events in Flex. I'm following Oliver Merk's tutorial found here: blog The custom event works if I implement it using MXML in the main app. But, if I use actionscript, then I get error 1119: Access of possibly undefined property ADD_PRODUCT through a reference with static type Class. My Event...

Parsing json as3

Hi, I have been trying and searching with no success.I waned to parse the following json string : {"label":"My ncWMS server","children":[{"label":"champ","children": [{"id":"champ/XE","label":"sea_surface_height_above_geoid"},{"id":"champ/U","label":"barotropic_eastward_sea_water_velocity"},{"id":"champ/V","label":"barotropic_northward...

Data grid crashes with data provider change

I have a radio button group within a data grid, whenever I attempt to change the selected radio button the web page crashes. Below is how I put together the radio button in the data grid. Anyone see what could be the cause of the issue? MXML <mx:Accordion> <fx:Declarations> <s:RadioButtonGroup id="cover"/> </fx:Declarations> <fx:Scrip...

Selecting Multiple Text Objects.

Consider there are two text field objects: TextField1="texta"; TextField2="textb"; Output: texta textb Now I want to select from "ta" in TextField1 to "tex" in TextField2. By the drag of a mouse. I know that by conventional methods it is not possible? Is there any other way to achieve this? And I need to highlight the text also. Pl...