actionscript

Streaming a dynamic zip from Amazon S3

I am looking for a way to dynamically stream download a zip of files from Amazon S3. The application is hosted on EC2 and the files are stored on S3. Need to give users the ability to select from a group of files which will then get bundled up and downloaded to them. Have heard about a few Actionscript libraries (aszip and fzip) tha...

calling a static method of a class with only an instance

If all I have is an instance of an object, can I call a static method of its class? For fun, let's say I don't know what the name of the class is, only the name of the static method. Can I do this? How do I do this? ...

Passing an ArrayCollection from ColdFusion to Flex (with BlazeDS)

When pushing objects from ColdFusion to Flex via BlazeDS, and mapping the classes using RemoteClass... [RemoteClass(alias="blah.blah")] ...is it possible to have ColdFusion "Arrays" (or some Java equivalent) automatically mapped to ActionScript ArrayCollections? This chap nearly had it, but not quite: http://www.richinternet.de/blo...

Flex profiler isn't showing me what I expect... Am I doin' it wrong?

I'm trying to profile the performance of my Flex code, but I'm not getting the results I expect: the wall clock says that my application takes about 30 seconds to load, but when I sort the profiling* results by cumulative time, the numbers don't add up: there is one method, [enterFrameEvent], which has a cumulative time of ~8000ms, then ...

Understanding the "Instantiation" of Actionscript/Flash Objects

Could someone expand and clarify the different logical instantiations of objects in actionscript? So far it seems there are 3 layers of instantiations, for lack of a better term. The first one is declaring a variable/type. Next is instantiating that variable with something solid in the code, like a method or function? Is this jus...

flex/ actionscript comments

cannot get the comments to show in actionscript file when running asdoc.. is this a known bug? [Bindable] /** test comment */ public var currentSearchTextValue:String; does not show anything in the generated documentation... am I doing something wrong? ...

Any body know Clock animation using flex/flash/actionscript3?

In my application i want to show 5 clcok . In the clock shows international time depend on country based But Normal clock time i will get sytem time (getmintues and gethours ) and show . How can show all country time ?. i tried below code for animation . Do you know like those any example for clock animation . public function createCh...

Flash client XMLSocket not connecting to server.

I have a Flash client that I want to connect to a server. Both are using localhost and port 50000 so there shouldn't be any cross-domain problems. I also set Access Network Only in the publishing settings. When I call the XMLSocket connect, the server seems to get a new connection. But, the XMLSocket.onConnect callback is not called ...

ActionScript 3.0: How to execute a function when a user enters text?

I have an input text box with the instance name of input_txt and a dynamic text field named output_txt. I'm trying to do something with the dynamic field when the user has entered text into the input field. So far, this is what I have: input_txt.addEventListener(TextEvent.TEXT_INPUT, update); function update(event:TextEvent):void { ...

Flex Combobox Binding Issues

In my application i used combobox and adding value using dataprovider like id="teamComboBox" dataProvider="{xml_teamcoupon.lastResult.coupon.teamcoupon_name} my xml like this <pick15> <coupon> <teamcoupon_id>1</teamcoupon_id> <teamcoupon_name>teamcoupon1</teamcoupon_name> coupon></pick15> so comobobox shows team coupon name . Bu...

Aligning Multiple Charts in Flex Charting

I have multiple line charts in Flex Charting (3.x). The charts (and number of charts) are being dynamically generated, and are either of "type A" or "type B." The type of data on the Y-axis is different for type A then it is for type B. The x-axis is time. Each chart is placed in its own VBox (with a few other things) that make up ...

Flash ComboBox component selects the wrong value in Web Browser (works fine in IDE)

I added a standard Flash ComboBox component to my CS3 (AS2) project. It is part of one of my library symbols, not created on the stage. I did not make any changes to the skinning, source code, etc. of the ComboBox. When the user clicks on the ComboBox, the list drops down, the user uses the mouse to select an item, and that item is pas...

Java/Flex ORM/DTO Generation Tool

Is there a tool out there that I can point at a Java DTO (Data Transfer Object) and it generates a corresponding Flex/AS Domain Object? Vise-Versa? I'm using BlazeDS for my DataService over an AMF line. Thanks. ...

How does one smooth an image used as a control skin?

I'm embedding an image like this: [Embed(source="/tool_deleteUp.png")] private static const c_deleteButton_styleUp:Class; I'm using it like this: _removeButton = new Button(); _removeButton.setStyle('upSkin', c_deleteButton_styleUp); When I rotate the button, the image doesn't scale smoothly. I know the tricks one uses to scale an ...

Basic ActionScript Help?

I have a MXML file and ActionScript Class... Now i have a component textInput in my MXML, how would i call this in my ActionScript class. <mx:TextInput styleName="loginTextInput" id="username" x="160" y="161"/> ActionScript class.. package myClasses { import mx.controls.Alert; import mx.events.ValidationResultEvent; ...

How to receive the events from an ActionScript 1/2 swf in a flex swf?

I was trying to load an flex-built swf into a swish-based movie and FAILing, doing some research led to: (AS1/AS2 and AS3) run in different "virtual machines" within the Flash Player. Like many product upgrades, AS3 based SWF's can load AS1/2 based SWF's but AS1/2 can not load an AS3 based SWF. ActionScript 3 is a tota...

Create an associative array with dynamic keys in Actionscript 2

for an XML file, I want to create an array in actionscript where I can reference a particular value with a key I set rather than 0, 1, 2 etc buildings = myParsedObjectFromXML; var aBuildings = new Array(); for ( building in buildings ) { var currentBuilding = buildings[building][0]; var key:String = currentBuilding.buildingCod...

Flex scrolling the canvas to its top

Is there a way to programmatically scroll the canvas to its topmost position? ...

Passing one variable from one SWF to Another?

Now I understand this has been asked to go from Parent to Child before, which is all well and good, but what I want to know is, how do I go about passing from a Child SWF back to the Parent? The way I do it for Parent to Child is: In your parent swf you’d put _global.myvariable = blah; In your child swf you’d put this. myvariable =...

Regex : Extracting variables from a string like /var1/var2/var3/...

Hello, I need to extract in actionscript the variables from a string like /var1/var2/var3/... Each variables can be characters or/and number and variable size. My current regex /(\w+)/g work for the first variable but not for the others. var matchExpression:RegExp = /(\w+)/g; var match:Array = matchExpression.exec(browserManager.fra...