flex

CSV File Upload in Flex

How can i upload csv file to java class in flex ? ...

Flex full screen mode

Hi, I'm new in flex. I faced problem to make full screen in flex 3.My layout container type like below. <mx:Application > <mx:Panel> <mx:ViewStack> <mx:VBox > <mx:VBox > <mx:Canvas > <mx:HBox width="300" height="300"> </mx:HBox> </mx:Canvas> </mx:VBox> </mx:VBox> </mx:ViewStack> </mx:Panel> </mx:Appli...

how to load a big picture or swf file by calling Loader.load() in Flex, and make the container adjust the size of the loading content?

Hi All, I get a ActionScript class for loading the content: public class LoaderContainer extends Sprite { public function LoaderExample() { loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); addChild(loader); var request:URLRequest = new URLReque...

how can i validate(phone number validation) each array item in script using flex

var str:String=cntslst.text; var results:Array = str.split(","); for(i=0;i<result.length;i++) {<mx:NumberValidator source="{result[i]}" property="text" id="cell" />} is it possible ? ...

Flex TileList item rollover effect

Hello everyone. I am using a flex tilelist to display some images. I want the image being rolled over in tilelist to zoom out a bit. I tried itemRollOver property of tilelist but didnt succeed. The rollOverEffect property of tilelist zooms out entire tilelist which is not what I want. I want only the rolled over item to zoom out. How c...

Flex: Text Input that accepts number only

Need a code that only accepts numbers. Upon inputting, the code must check if it is number, if not, it must remove the entered key or not enter it at all ...

Multiple HTTPService Requests with Flex and AIR

I am developing an AIR application with Flex Builder that requires me to make two HTTPService requests at the same time. They both use different instances of the HTTPService AS3 class. Both services are calling a RESTful API which is currently running on my localhost (XAMPP) and takes a few seconds to respond (much quicker on live server...

Flex: Make advanced data grid height of rows?

I have an ADG along with some other components in a VBox. The number of rows of items in the ADG is variable. I want the height of the ADG to be however tall it needs to be to show all the rows without scrolling. This is because I want the containing VBox to handle all the scrolling. The reason being, is because sometimes there is a ho...

Error listener in loaded swf

Hi , I have a swf loaded into another swf , is there a way to monitor the errors that accur in the loaded swf and trace them outside ? Thanks ...

Automatically generate images from SWF

I'm looking for something that automatically generates images from the content in some SWF and stores the images on a server to be fetched if the user doesn't have Flash Player installed. The purpose is to at least show a static diagram instead of just a table with data, if Flash Player isn't installed. It's quite easy to create an ima...

Why does flex DateTimeAxis creates duplicate months on the axis?

I am working with a Flex DateTimeAxis. I have a scenario where the DateTimeAxis sometimes creates duplicate months on the Axis. The month label unit is generated based on a min/max value that is supplied to the DateTimeAxis, it is NOT generated by the series data as far as I can tell. In other words, the duplication does not exist wit...

add file icon to datagrid in flex

Hello, I'm trying to put some File objects into a DataGrid, but I can't find a way to display the File.icon in there. So far I have this: (ms[x] is a File) listData.addItem({ filename:ms[x].nativePath.replace(/.*\\/,""), path:ms[x].nativePath.replace(/\\[^\\]*$/,"\\"), icon:ms[x].icon.bitmaps[0] }); and <mx:DataGrid x="358" y="0"...

Recursive iteration through every component instance

I have various custom component instances in my flex app. I want to loop through them recursively and get their instance Ids. The recursive part is very important to me. Can someone tell me what's the best way to do it? I have tried doing this, but it didn't do recursive: for each (var myItem:* in this.MasterContainer.childDescriptors) ...

Increase the Load Speed of a Tree Control in Flex

When loading a data set from Java into Flex it takes a long time to load and display in a Tree control. How can I increase the speed of this operation? Additionally, I would like to load more data into my tree when a parent node is clicked. How can I achieve this? ...

How to throw an exception on a web service in .net with custom message?

How do I throw a custom exception in a C# web service so that flex reads the error on fault? I tried simply throwing an exception like this throw new Exception("invalid key"); But FaultEvent couldn't decode the message in flex. Edit: What I really want to do is for flex to differentiate exceptions in the web service, for example to ...

Drag and Drop, Orderable List in ActionScript 3

I am trying to create a set of drag-and-drop, orderable lists with ActionScript. I know this is possible in Flex. The behavior I am going for can be seen here: Two-way drag-and drop support (you'll have to scroll down) Here is the source code Does something like this already exist in AS? Can I use the Flex component in Flash? ...

Display source code in a textarea component

I am putting together a presentation on flex for adobe user group that specialize in coldfusion. In my example I would like to display the text of the cfc being called from the webservice tag in my flex application. Is there a simple way to load the actual text for the cfc instead of the html that coldfusion is passing back to my URLlo...

How to calculate the height of text (width fixed)?

I want to create a text box with a fixed width that will fit itself to its current text. So I went ahead and wrote this simple application: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="load();"> <mx:Script> <![CDATA[ private function load():voi...

Datagrid scolling issue - Flex

I have a DataGrid, <mx:DataGrid styleName="alternateColor" verticalScrollBarStyleName="verticalScrollStyle" headerSeparatorSkin="uiExtensions.DataGridHeaderSeparators" width="100%" height="100%" editable="false" color="#000000" verticalGridLines="false" variableRowHeight="true" itemEditEnd="processData(event);...

Render Embedded Fonts to a BitmapData in AS3 / Flex

It seems that rendering fonts to a BitmapData in Flex is quite easy. You create a TextField, populate its properties, and the BitmapData's .draw() will accept it. The problem comes in when you attempt to enable embedded fonts. Here is an example of what I'm trying to do: ResourceManager.as: public final class ResourceManager { /* .......