flex

As3 split strangeness

Hello coders, Super simple example: var Path:String="E:\SWF Security\Acess Current Path\Access SWF URL.swf" var Path1:Array = Path.split("\\") // Split using the backslash as delimiter (No limit the number of returned tokens) trace(Path1) What do you expect path1 to be ? E: ? No its E:SWF SecurityAcess Current PathAccess SWF URL....

Dojo or flex with Grails?

Hi, I plan to build a database management system using Grails as the main framework. On the client side, I'm thinking whether to use dojo or flex to make a nice front end. Could some experts here enlighten me on the pros and cons of choosing either, or both? or any other options? thanks! ...

Refreshing an XML file through HTTPService in Flex

I'm having a problem refreshing an xml file. I am bringing it in through an HTTP service component and putting it into a bindable array _cattArr, that I am using as the dataprovider for a grid. When someone adds an item to the datagrid, it saves to the same xml file. Then I close the window, reopen it and don't see the item that has bee...

Flash "visible" issue

I'm writing a tool in Flex that lets me design composite sprites using layered bitmaps and then "bake" them into a low overhead single bitmapData. I've discovered a strange behavior I can't explain: toggling the "visible" property of my layers works twice for each layer (i.e., I can turn it off, then on again) and then never again for th...

Flex: FileReference and Image unhandled IOErrorEvent

The following code shows a button that allows you to select a file (should be an image) and display it into an image component. When I select an invalid image (e.g. unsupported image type, a word document), I get the following error: "Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type." I know I can ...

Adobe AIR - SharePoint Authentication using Kerberos

Hello StackOverflow Community, Can Adobe AIR use Integrated Windows Authentication (Kerberos) to authenticate from a user’s work station to SharePoint? Thanks, Mauricio ...

faster way to change xml to array(grails to flex)

I have a large xml passed from grails to flex. When flex receives the xml, it converts the xml into an associative array object. Given the large xml file, it takes too long to complete the loop, is there any way in flex to make conversion faster? Below is my sample code. <xml> <car> <model>Vios</model> <type>Sedan</type>...

[Flex] Modify components that is not included in the current state?

In Flex 4, is it possible to modify components that is not include in the current state? For example, I have labelA included in stateA, how do I change the label text in stateB? If I directly change the label text in stateB, I'll get an null reference error message. One workaround is to include labelA in all states, and set it to be inv...

Flex Import Class from a Module within a sub directory

I put some modules in a module folder. How do I import classes with the import statement when I'm in a sub folder? This won't work, not like classes which are in packages. modules/SomeModule.mxml <?xml version="1.0"?> <mx:Module> <mx:Script> <![CDATA[ import Fruit.Apple; ]]> </mx:Script> </mx:Module> D...

Error #2130 Unable to flush sharedObject

I cant flush the shared object in my project. What can I do for that problem? ...

Flex and SOAP webservices

I'm in the process of trying to call a SOAP web service using Flex's built-in SOAP support. I construct the basic WebService object as follows (just to give you an idea): _service = new WebService(); _service.loadWSDL(_serviceURL + "?wsdl"); _service.addEventListener(FaultEvent.FAULT, faultHandler, false, 0, false); When I call functi...

Legend in Flex Charts

How can i make the Legend Horizontal or Vertical. ...

passing parameter from asp.net page to flex application

I have an asp.net page where I get the user_id from who's logged in. Now I need to pass this user_id to a flex application that runs in an asp.net page as a .swf. How can I get this user_id in a variable in my flex application. Or what is the best way to get the user_id into flex. Thanks ...

how can i passing value to combobox in flex?

i have combobox in one screen(namely 1) and i need to pass the selected value of the combobox to the another combobox which is in the another screen(namely 2) and the passed value should be selected by default. ...

Run AIR Debug Launcher (ADL) without a GUI for continuous build

Is it possible to run the ADL without a GUI so that I can run FlexUnit tests during a nightly build? Right now, when I execute our test runner on our server (Ubuntu 9.04) it fails with the output: "Gtk-WARNING **: cannot open display:". Many thanks for any suggestions! ...

What's the timeout on URLLoader.load connection?

Is there a timeout on the connection made by URLLoader.load? If there is, what's its value, where is it documented and can it be changed? Also, what event (if any) gets dispatched if the timeout occurs? Is there a difference between AIR and browser application in those regard? ...

how to avoid the error due to missing element from an XML file in Flash Action Script

Hi, I have a code which is written for read the xml data. and the xml file contains the optional values, so some time the elements are present there some times not. In this case how can i set a default value for that in action script 3.0. When i tried to trace the value that area is skipping. So is there any other method to trace-out ...

Why does Flash Builder 4 use Flash Player instead of a browser to run apps?

I've got an old flex builder 3 project that I imported into Flash Builder 4, and I want this project to run its web applications in my web browser. However, the apps persistently run in the Flash Player instead. This is causing no end of problems because of the flash player bug documented at https://bugs.adobe.com/jira/browse/FP-209. Ho...

Filtering data in an array.

Hi all, I have an array that has 30 date objects. The date objects are indexed in the array from the minimum date value to the maximum date value. What I would like to do is retrieve only 7 dates from the array. Out of the 7, the first one should be the minDate and the last should be the maxDate, with 5 dates in the middle. The 7 number...

Flash/Flex: Is it possible to encode Dictionary using AMF?

As the title suggests, is it possible to use AMF to encode/decode Dictionaries (without subclassing, that is)? For example, here's a test case: function serializeAndReload(obj:*):* { var serialized:ByteArray = new ByteArray(); serialized.writeObject(obj); serialized.position = 0; return serialized.readObject(); } funct...