flex

RIA IDE - Visual Studio 2010, FlashBuilder and ExtJS Designer

I trying to decide whether we went to Flex, Silverlight or even ExtJS. There is one variable missing so that we can make the decision and this is about Visual Studio. With Silverlight, it looks like if I want a "drag and drop" approach to build my interface I would need Expression Blend to do that. So the basic question here is: Does V...

Zoom in and zoom out using AS3

Hi guys, you all know: "right click -> zoom in or out" in flash file, well, I need to do this but using, for example, clicking a button. Is this possible using only AS3 code? Thx! ...

Flex TileList with associative array

I have an associative array that I want to display using TileList. However, it doesn't understand what is being fed to it. All I got is [object] in the TileList. [bindable] public var people as array = new array(); private function loadArray():void{ people = decoded JSON array showPeople.dataProvider = people;} <mx:Tilelist id="show...

Height of Text in Flex

How can you get the height of the Text component that's been created dynamically from ActionScript. For instance, if you have something like: var temp:Text = new Text; temp.width = 50; temp.text = "Simple text"; how to get height of temp? ...

Compiling flex file into dll.

Hi, I've got a lexer created with flex (cygwin). Normally I compile it to an .exe file. For the newest project I need a lexer to use in a bigger C# program running on Windows XP. Of course I can execute a file using System.Diagnostics.Process. But it is not the best solution for me as I want that program to run on several machines. H...

Problem to cretate dynamic radio button in flex.

hi friends, I am creating the flex ARI application in which I am accessing the webservice method this method is returning me a childList.I am accessing it in my flex appliction using the Array object in my action script code.Now I want to cretate one flex page in which I get child list with radio button.I have done it using Arraycollecti...

Transposing DataGrid data

Hi All, how to do Transposing DataGrid data.e.g displaying rows as columns and vice versa.Data get from XML. Thanks, AravindakumarThangaraju ...

In what situations does Flash / SWF misbehave in different browsers?

Hi, Recently I had some issues with Flash in IE, involving a SWF which is something like a gallery. In Firefox its loads perfectly, but in IE it doesn't work properly sometimes. The first time it is loaded its works fine but when I refresh all the images are blank. The image data came from XML. I wish to get some tips regarding the...

Ant and Flex-4 problem, MXMLC.jar not found !

Hi all, I updated a flex application from flex 3.5 to flex 4.0. We are using ant for compiling our project and we have a mxmlc task to handle the flex part. After the upgrade, our mxmlc task broke. Here is the task definition: <taskdef resource="flexTasks.tasks"> <classpath> <pathelement path="${FLEX_HOME}/ant/lib...

Air/Flex concatenating a variable with a property

I have three text boxes on the stage id=red, blue, green same as the keys in my cars Object/Array <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" ...

Flex/PHP/XML data issue

I've created a simple Flex application to fetch an XML file. I need a Flex variable "id" to grab the "letters" value from the tag in the XML code, then show the id in an Alert window. When I run this code now (with the full code), the Alert box is blank. When I run the application in Flex Debug mode, this is what Flex sees: http://stat...

Flex text change event

I'm tracking how fast does the text of a textArea change. If it changes faster than 500 ms then i don't want to do anything, but if it doesn't change in 500 ms, i want to call a method. I tried like this: public function textchangeListener(e : Event):void { if(((new Date).getTime() - changeTime)>500) { ...

How do I delete the contents of a form when switching between states?

I have a email form in a custom component that is put in the main application when switching to the email state. When someone searches something it will switch back to the search state. But when the person eventually goes back to the email state the contents of the form is still there. I tried doing a creationComplete and running a func...

Flex Builder / BlazeDS / JBoss / Seam integration issue

What's the best way to develop JBoss/Seam/Flex/BlazeDS based applications? The problem that I'm facing is in having an easy and clean way of having a deployed ear while having Flex/BlazeDS still debuggable from Flex Builder. Everything works just fine if I'm working on an exploded war deployed under "JBOSS_HOME/server/default/deploy"...

Flex - new ClassFactory() vs Fully Qualified Name

When assigning the itemrenderer of an object it is better to use a fully qualified name string or use ClassFactory? ...

AdvancedDataGrid dynamic text Value Coloring - ItemRenderer problem

In my AdvancedDataGrid, I am adding dynamic values to cells by dragging a cell value to other cells. While copying, I am setting the value to listData and setting the Red color to the value in ItemRenderer. Everything is working fine, but when I scroll down/up, the values remains in the cells where thay are supposed to be(as I am settin...

In proxy should I remove listeners explicitly ?

Hi All, Currently I am working on flex application where I am using multicore variant of puremvc. My question is in my proxy I am making remote call and attaching some (RESULT and FAULT) event listener. So in my event handler code should I remove listeners explicitly for making remoteObject class eligible for garbage collecton ? pub...

Grouping Collection seperating numeric 5 from String "5"

BackGround: I have an advanced data grid. The data provider for this ADG is an ArrayCollection. There is a grouping collection on an ID field of this AC. Example of a couple items within this AC the AC var name is "arcTemplates": (mx.collections::ArrayCollection)#0 filterFunction = (null) length = 69 list = (mx.collections::Arra...

Adding UIComponent to both Canvas and Tree in Flex 3

I currently am trying to add a custom class which subclasses UIComponent to both a tree and a canvas, but when I try to re-order the tree by dragging I get this error: TypeError: Error #1010: A term is undefined and has no properties. at mx.controls::Tree/get firstVisibleItem()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\co...

Flex application versioning

I'm not referring to CVS or SVN! The thing I would like to do is: I want to have a version number of the application ex. 0.0.120 I want to see this version number only in the About box or similar This version number should change everityme I hit debug or release. ex. my version was 0.0.120, after I hit debug in the FlexBuilder, the ver...