flex3

What's the best way to validate a complex Flex form?

I have a Flex application that edits a moderately complex object, and I'd like to put some client-side validation in place on multiple parts of the editor. The editor is a set of nested objects: Form -> TabNavigator -> Tab1 -> Component1.1 Component1.2 Tab2 -> Component2.1 ...

Flex Newbie XMLList question - Sorting XML and XMLList

Is it possible to sort an XMLList? All the examples I can find on it create a new XMLListCollection like this: MyXMLListCol = new XMLListCollection(MyXMLList); I don't think the XMLListCollection in this case has any reference to the XMLList so sorting it would leave my XMLList unsorted, is this correct? How can I sort the XMLList di...

Why does the Adobe Alchemy Tool create faster running flash byte code than the flex compiler?

I have seen a few blog entries on this and have had a discussion or two with my team mates but I would like to see what the stack overflow community thinks. So why does the Adobe Alchemy Tool create so much faster running flash byte code than the flex compiler? Also, when will the flex compiler be able to make similar performance gain...

How give MS word like interface to user to expand or contract display object's like canvas, images

How to give a ms word like interface to a user so that he can enlarge and contract the display objects like Images, canvas, Hrules etc. at runtime in an web application? ...

to crop a image by selecting part of imageusing ActionScript3.0 and Flex3.0

To crop the image into a selected size by drawing rectangle over it. It should be done in ActionScript 3.0 and Flex 3.0 warm rgds, ...

How to get "long polling" with flex 3 and php?

I am working on a project for a client whereby their cms will be flex 3 and php. There will be multiple clients using it at once and I am trying to make it to where when one person makes a change, the others will see it. My Question Is: If I am using Flex 3 and PHP, how can I implement something that acts like 'server-push'. Is long pol...

ViewStack Container Vs Canvas

Hi What is the main difference Between ViewStack Container and Canvas? thanks, ravi ...

Adobe Flex creating polygon

How to create a polygon in Adobe flex 3.0 ...

Flex Combobox: how to get the value of the selected item?

I am using a combobox for the us states, link. The label is set to the full name of the state, while the value attribute holds the abbreviation. What I want to do is to get the selected item's value. So I tried combo.selectedItem.value and combo.selectedItem.@value, but neither of them worked. Can someone shed a light on this please? ...

Creating loop for sending variable to other components in Flex

Hi! I have some simple function in Flex in which I would like to send one of my variables to all the components used in my app... The problem is that there is lots of components in my app, and I'm not sure how to reference to my component's id... Basically, is there an easier way to do this; private function preloadStuff():void{ //...

Why do DragOver/Enter events require a background on Canvas?

I have a canvas which I want to accept drags on. I have added a dragOver and dragEnter event listeners to the canvas, but they only work if I drag over something inside the canvas (another child element). I realised that if I set the canvas' background colour to black it works. So I have set it's background transparency to 0, which wor...

ViewStack Vs State

Hi, Can anyone explain difference between the ViewStack and States? Thanks, Ravi ...

Changing the color of graphics in flex 3?

Hi, I have built a simple image gallery using svg files that I have created in Adobe Illustrator. The images populate in a panel at the bottom of the application and when the user clicks on an image, the selected image pops up in a pop-up window above said panel. That said, I am having some trouble finding out how I would be able to le...

how do I use the "in" operator? Flex/AS3

So the documentation has this nifty "in" operator which I like the idea of more that using a multiple step or statement (||). The documentation gives me this example. trace("PI" in Math); // true trace("myProperty" in Math); // false and public var myArray:Array = ["zero", "one", "two"]; trace(0 in myArray); // true trace(1 i...

Flex/AS3 DataGrid Columns have wrong values

This is driving me nuts. This script is adding datagrids to various containers in an accordion. In my first level for-each loop the item that fills my "if(component.@component_componentID == "999999999")" is the last item looped through everything works fine except the datagrid I am building there has the wrong columns. For some reason "...

Why are my XMLListCollection properties in my custom components always null?

I've written the following custom component, SubNavBar.mxml: <?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" height="100" width="300" creationComplete="init()"> <mx:Script> <![CDATA[ import mx.collections.XMLListCollection; [Bindable] public var menuItems:XMLListCollection; pri...

What are some good patterns for managing a bunch of views/screens in Flex?

I'm building a Flex application with about a dozen different screens. There's relationships between the screens such as when on screen 1, I click on something that is an input to screen 2. Then I might bring up screen 3, then go back to 2 and then bring up screen 4. To make it clear to the user where they are in the application, we'd lik...

Flex-Ant: mxmlc doesn't support the "file" attribute

Hey guys, Just moved my Flex app onto Ant with a basic ant script and I am getting this stupid error: mxmlc doesn't support the "file" attribute. I looked through docos and it seems that my code is right, so hows it going. <!-- load previously defined configuration properties file --> <property file="build.properties" /> <!-- point...

Is there a really good open source video player in Flex?

That has all the basic functionality like play, pause, stop, forward, rewind, and volume controls? ...

Flex: Should I use web service calls in custom components or regulate them to main.mxml?

I'm attempting to code an RIA with loosely couple components. I have several custom components that use data from a web service I've decalred in main.mxml. As a best practice, should I make all of my web service calls in main and pass along the data to the components, or give the web service credentials to each component and let them ma...