flex

How can you save out a String into a file in AS3?

I have a string the user has typed and I want to save it into a file on the users harddrive. Can you do that? And if so, how? ...

Automated Flex testing without static AutomationIDs

Hey all- Has anyone had any luck testing a Flex app without static Automation IDs attached to components? All of the elements in the apps are generated ..... We've investigated FlexMonkey but it appears to be incompatible with any app that utilizes the ExternalInterface. RIATest's scripting language leaves much to be desired... Than...

Global Object in ActionScript

private var _product:Product; [Bindable] public function get product():Product { return _product; } public function set product(p:Product):void { _product = p; tn.selectedIndex = 0; } <mx:Label text="{product.name}" fontSize="11" fontWeight="bo...

How have you implemented a Cover Flow ui in the web browser?

Something that is similar to the Cover Flow in iTunes. I can use Adobe Flash, Flex, or pure html/javascript. HOWEVER, I need a pointed to production ready code. I've looked at plenty of examples in both Flex and HTML that aren't ready for prime time. No demo code needed. Here's my requirements for production ready: 1) Memory leaks...

What is the maximum integer value in Flex?

I was trying to display a number: 2893604342.00. But, when i am displaying it it is displayed as: -2893604342. Following is the code snippet ... avg += int(totalData[i][col.dataField]); I have even replaced it with Number, but it's still showing the same negative number. Please let me know whether there is any problem with int or Nu...

Force containers to do layout after children are rotated?

My problem is pretty simple: Flex containers do layout based on un-transformed children, and so rotated children are positioned as if there were no rotation, but then they're rotated around the top-left of that position. I've attached an image to show what I mean. Does anybody know how to get around this? Can I wrap the components in ...

Changing view states on application resize

I want to change the view states in my flex app when it resizes in the browser window. I have the swf embedded at 100% x 100%. So when the user resizes the window below a certain width, I want to switch to a different state. I tried adding an event listener like this, but it only fires the event when I resize the swf outside the browser,...

how to merge column headers in a flex grid, similar to colspan in html ?

I am looking into achieving below two features in a flex grid( or advanced grid). 1. merge column headers ( as in group just the cells in the header row ). 2. add multiple ( say 2 ) headers to the grid. If you know any such examples pls help me with some link. thanks. (I am using flex 3) ...

how to show data at group level in flex advanced grid ?

I am working on a grid example in flex using advanced grid control. I know we can easily group data by specifying the field name. At the group node level, other than the gorup name I want to be able to show data in the rest of the cells ( calculated data ) and I am looking for some dataRowBound event or similar to be able to hook some d...

Why is my swf causing the Flash Player to crash.

I've got a flex-based swf, which is loading an AS 2-based swf and then, negotiating further activity via a LocalConnection. From time to time, the AS 2-swf can request that the flex-based swf load a movie. I've arranged this via on(release){} functions. The AS 2-swf, I'm making in Swish Max. In Swish, when i set the on (release) on a ...

How do I make my Ant Generated swf as small as possible?

I have a flex project and if I build a release version of the application using flash builder with RSLs on my swf is 115k. If however I build the same application using ant the swf is 342k. Without RSLs the swf is 520k. How do I get the swf to be as small as the one built by FlashBuilder? Here is my ant file I have another task that co...

Flex : Assignment in Conditionals

If I use an Assignment within conditional, for e.g. if(userType='admin') Flex throws a warning,unlike Java, which throws an error. Why should Flex be doing this, despite being one of the newest languages? 1100: Assignment within conditional. Did you mean == instead of =? ...

Flex : Cross resolution applications

What is the best way to create applications in Flex/AIR, which look and feel the same irrespective of the screen resolution? ...

Build error building an example Flex mxml

I'm using the Flex 3.3 SDK (not Flex builder, as I'm on 64-bit Linux), and it seems I can't even build simple example files. The Pie Chart example on http://livedocs.adobe.com/flex/3/html/help.html?content=charts_types_09.html refuses to build, giving me: The generated actionScript is as follows: package { import flash.accessibility.*...

flex get contents of arraycollection as string

I am trying to get the contents of an arraycollection to print out using my debug function (which takes a string). Anyone know how to do this? I would like it would be rather easy but can't seem to find a way...I get the word "Object" printed a lot of the time. ...

How do I create a Flex 3 HTTP service with variable arguments?

I need to call an HTTP service using Flex that has variable arguments. I'm using Flash Builder 4 (Gumbo) to create the service definition, but there's no UI for variable arguments, and the subclass of HTTPServiceWrapper that it creates doesn't seem to support it. Is there a way to do this? ...

Simplest way to check if a string converted to a number is actually a number in actionscript

Hi Not sure if this makes sense, but I need to check if a server value returned is actually a number. Right now I get ALL number values returned as strings ie '7' instead of 7. What's the simplest way to check if string values can actually be converted to numbers? ...

Flex modulleader url, why cant it just look at the root ?

We are using pureMVC multicore as the flex Framework, When we need to load a module we use the first line "moduleEval.swf";. It works well in local for testing. But not on the production server which is obvioulsy online, in which case i need to put he full URL. Is that normal ? moduleLoader.url = "moduleEval.swf"; //moduleLoader.url...

Displaying huge, scrollable graphics in Flex, part 2: BitmapData into an Image?

Clox answered my question of how to display huge graphics (e.g. greater than 8191 pixels). I have the code to copy parts of a huge loaded BitmapData to a target BitmapData that is just the size that I can display. I think I have set the scroll bars of an enclosing Canvas to show the size of the larger image and allow the user to scroll...

Can't make microphone work on Flex

Hi, A Adobe Flex issue... I'm attaching a microphone to a NetStream, but there is no mic activity. The privacy is set to Allow, the microphone.muted is false and the activity level is -1. Only when I open the flash settings, and open the Microphone tab, it starts to dispatch the Activity events, and it starts to stream the audio. Als...