actionscript-3

Wrapping a Vararg Method in ActionScipt

I have a vararg method that I'd like to act as a proxy for another vararg method, but I'm not sure how to do it. Here's the basic code: class MyClass { public function a(...args:*):* { // other code b(args); // other code } public function b(...args:*):* { // do stuff with args } } I'm porting th...

How can I use Drupal Services from Flash via AMFPHP (AS3)?

What libraries or sample code will show me how to invoke Drupal services over AMFPHP from ActionScript? Ideally, they should be compatible with Flash, not just Flex. ...

calling mxml setter method in custom component from actionscript

hi, im trying to call a setter method in some an actionscript block of my custom component from an actionscript class. I can do this fine when its the main application i want to call by using ; Application.application.methodName(); however how can i call a method from a custom component? My component is in my components package and ...

What is the simplest way for one Flash movie to reload/rewind/refresh another?

I have a page with two Flash movies. When one (a content application) reaches a particular state (i.e. the user is now logged in), I'd like to completely refresh the other (a menu) to reflect the new overall state of the user's session (i.e. the user is logged in, so now include a "logout" item). The state is actually kept server-side,...

How to compile the generated AS

Hi guys, hope you can help me with this question. So, I've been working for a while with Flex, and had the crazy idea to create pure AS project. If I compile a Flex app with the -keep flag, the generated actionscript gets generated. Do you guys know of a way to make it compile, without going trough the code and gluing it all together?...

Flex 3 - how to select the first item in a List using code?

I have a regular control in my code with serveral items. <mx:List id="myList"> <mx:String>Item 1</mx:String> <mx:String>Item 2</mx:String> </mx:List> I have some other code which runs and populates the list. How do I select the first item in the newly populated list using code? ...

Flex 3 DataGridColumn HeaderText Localization

I'm working in a multi-language application using ResourceBundle in Flex 3. I'm displaying data in a DataGrid and defined DataGridColumn headerText like this headerText="{localizedHeaderText('LABEL_USER_NAME')} this function returns the localized label for the username, but when I dynamcally select another language evertying gets refr...

Flex Viewstack's children, if you can't see them, do they exist?

I seem to be running into an issue (Cannot access a property or method of a null object reference) binding events in actionscript to a viewstack layer not currently showing. Are those objects not created until that layer is visible for the first time? I remember something about a creation policy, if this is the case, can I force it to cr...

What thread does JavaScript code called from Flash execute on?

Hi, As far as I understand, all JavaScript code is event-driven and executes on a single browser thread. However, I have some JavaScript functions that are called from within a SWF object sitting on the same page. Is this code run in the same manner as regular JS code, or is it on some separate Flash thread? If it is on a separate thr...

How should client Flash(SWF) communicate with server-side .NET?

So I have ASP.NET running on the server in IIS7. I think I'm going to use MVC for some static pages and basic dynamic forms - but the majority of the client side is written in Flash/ActionScript. What's the simplest, most succint, most DRY way of building/generating proxies between client and server? Which format should I use? JSON ...

proper dictionary/map/tree/hash container in Flex

I'm getting increasingly frustrated with Flex's Dictionary (which is really just an array with string indices). Trivial things seem not to be possible, like getting the last element, or even iterating over the sorted container according to keys (the order seems to be arbitrary), and the sort functions seem to make a mess of everything i...

Where does the Flex compiler put the .aso files?

I want to be able to hand delete the intermediate .aso files generated by the Flex mxmlc compiler. Where are they stored? (I know the Flash IDE has a "delete asos" button, but I'm using the FlashDevelop IDE, which doesn't. The reason I want this is so I can play around with the compiler's warning settings on a fairly large project, an...

Accessing an ItemRenderer in a DataGrid

I have a data grid that has a checkbox item renderer in a cloumn to allow row selections: Main application: <mx:DataGrid id="dg"> <mx:columns> <mx:DataGridColumn id="ir" itemRenderer="renderers.RowCheckbox" /> <mx:DataGridColumn dataField="Name" headerText="Name" /> /mx:DataGrid> Item renderer: <-- Row...

Any recommendations on a pure actionscript layout manager library? That isn't flex that is...

I know, Flex should be the answer to this but I not using flex for this project and you probably won't convince me to...it's just not needed here. Having said that - anybody have a specific actionscript layout manager that they use? I'm looking at the following 2 but I'm not sure but I'm not sure if I'm missing any others out there. I...

Creating revolving video wall in Flash

Hello, Any thoughts on how to create a revolving videos wall similar to Microsoft's "I'm a PC" in flash? The one on Microsoft site is done in Silverlight. I'm a newbie to flash and AS3, so any guidance and advices are greatly appreciated. Thank you, Jacques ...

Get the status of a live stream for a VideoDisplay control

I'm looking for a way to find the status of a live stream through a VideoDisplay (or any other method really). I am interested to know if the stream is currently being published to or if the publisher has stopped. This is for a Flex/Flash ActionScript 3 project. Is there a way to do this or is this ANOTHER oversight by adobe? flex flas...

Is S3 usable in Flex through a browser?

I am aware that Amazon S3 is usable in Flex via an AIR application ( http://stackoverflow.com/questions/186768/can-you-use-amazon-s3-via-flex ) but was curious if the same applied to a browser ( swf ) compilation of Flex source. At http://code.google.com/p/as3awss3lib/ it states that: "It only works in Apollo because of restrictions in...

Re-dispatching event in FLEX

In a FLEX app, I am trying to "re-dispatch" a custom event. I.e. component1 does dispatchEvnet(event), component2 registers a handler for the event, the only function of the handler being, again, dispatch(event). Finally, component3 listens for the event coming out of component2. What I am trying to do is similar to the concept of "re-th...

RSL (Runtime Shared Library) in Flash IDE

I manage the cache of the client by adding a version parameter to each request of an swf. Now I want to be able to use RSL in the Flash IDE, there I need to specify the path to the swf file where the MovieClip (graphic asset) will be at runtime. It will be impossible for me to get into the Flash IDE and add the version parameter to the ...

ActionScript 2.0 and ActionScript 3.0 project

I have a new project I'm working on that will require a Flash application to load both AS2 SWF files and AS3 Flash files as well as FLV movies. The new Flash application will control the loaded SWF files by moving to different frames within the main timeline. I should be able to get the source for all the files that are loaded into the...