actionscript

Canyone explain the code written below in ActionScript.

package samples.flexstore { import flash.events.Event; public class ProductThumbEvent extends Event { public static const DETAILS:String = "details"; public static const BROWSE:String = "browse"; public var product:Product; public function ProductThumbEvent(type:String, product:Product) { super(type); ...

Dynamic DataGridColumn Creation Within A FlexDataGrid

hi guys, Shall i get actionscript for dynamic grid creation.Especially i need the code to change the position of columns automatically after the Gridcreation. ...

What is/are the (dis)advantage(s) of using weak references in EventListeners in AS3?

I've been teaching myself actionscript 3 over the past month or so and recently ran into an issue where an object kept doing things after I thought it had been removed. I figured out that the problem was caused by an event listener using the default of useWeakReference = false and I'm wondering why that's the default. what is the advant...

Saving Streamed Audio from Mic on Adobe FMS

Im trying to capture mic data from a swf, stream it to adobe flash media server, and save it as a wav file. Currently I can only stream the mic data to the server and save it in FLV format. Anyone know how I can covert it to a WAV or save it as a WAV? ...

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...

Programitically shifting the column position within a Flex Datagrid

Hi Guys, Any one help me please.Shall i get the flex or action script code to acquire dynamic grid creation.Once the grid got created,then programmitically columns should be arranged as the user tries to add the column. ...

AS2: How do I use addEventListener on an SWF/MovieClip loaded via MovieClipLoader

I'm trying to load a local SWF then catch a few events that are fired but I can't see why this isn't working. Here's the code Parent.swf _mcl = new MovieClipLoader(); _mcl.addListener(this); _mcl.loadClip("Child.swf", rotator_mc); function onLoadComplete(clip) { clip.addEventListener("initAsLoaded", function() {trace("childLoaded...

Trying to load remote images into a flash sideshow

Trying to load remote images into a flash sideshow local files work even if I use absolute path. I am updating existing gallery to dynamically pull images from Picasa. The php works fine and pulls the images from the API. http://domaineseattle.com/gallery/FlashPhotoStack_SRC/gallery.php But when I pass the XML to flash it wont load re...

RSS reader uses PHP any work around on a non PHP server?

This is called from flash/action script File name: rssProxy.php RSS reader uses PHP any work around on a non PHP server? Script below: <?php $rss = $_GET['rss']; // make sure that some page is really being called if ($rss && $rss != ""){ // make sure that an http call is being made - otherwise there's access to any file on machine.....

Can a Flash application alter the HTML of the page it's on?

Suppose I have a flash application; let's say a chess game. The user is playing against a computer opponent. After every move, I want the flash application to add the move's "description" into the HTML of the page. Does flash have this ability? Are there any common round-about ways of doing this? Maybe the flash app updates a databas...

Flash Security Sandbox: crossDomain.xml not working

Hey guys, I have written a simple upload component in Flash, but I am now having issues in uploading due to a Security Sandbox error. I now know this is due to the fact I am uploading from one domain, to another, but 1, this used to work, 2, i have implemented a cross domain xml file by placing it in the root of the domain I'm serving f...

i try to import a sound in my flash game. It shows "one or more files were not imported because there were problems reading them". Help me

i try to import a sound in my flash game. It shows "one or more files were not imported because there were problems reading them". Help me ...

HMAC-SHA-512 implemention for ActionScript

Hello everyone, As mentioned by the title, I would like to find an implementation for HMAC-SHA-512 written for ActionScript. I was able to find a library that provide HMAC-SHA-256 with other functions, however, I am looking for HMAC-SHA-512 specifically. Thank you Edit: Or, since actionscript and javascript have the same origin, can ...

Multi-purpose Parser.

Im thinking of implementing a parser framework that would utilize a set of interfaces to make it easy to adapt to different types of data formats. I want to create structure around the way my controller object interacts with this parser and have come up with the following simple structure. I was hoping the community could provide any com...

How can I determine the position of an XML instance in an XMLList in ActionScript3?

What it says on the tin: I have an XMLList, and I want to find where in it a particular XML item falls. First index is good enough for my purposes. Note that I have no problem writing a function to do this by hand... but I was hoping that the API has something buried somewhere that'll do it for me. I didn't see it, though. ...

Lexagraphically find uncalled functions in Flex/AS3 ?

I am aware of the FlexCover project, but I want a code analyzer that finds the functions (and classes, I suppose) that have no calls to them at all in the source code. I suppose I could comment them out one-by-one, but that way lies madness. It's more than just tidiness: we have many versions of the same functionality and maintaining u...

Java Implementation of Flash API

Just curious to see people's opinions: Has anyone thought about implementing the Flash player API in Java? Controlling sprites, graphics, media, etc is so easy to do in Flash, it seems like it would only make sense to have a similar API in Java. ...

access a TextField inside a symbol, using ActionScript

I've created an animated scene in Flash, with a bar chart. The bar is a MovieClip symbol containing a large rectangle and a TextField. I'd like to access the TextField using actionscript, but I can't seem to reference it. Each bar in the scene has its own instance name, so that's easy to find. But how do I modify the text in the textfi...

Does dispatching an event interrupt a function?

Let's say function foo() is executing. Suppose that an external event occurs, for which you have a handler. Will function foo() be interrupted so that the event handler can be executed? What is the order of execution in this situation? ...

Porting SHA512 Javascript implemention to Actionscript

Hello Everyone, I am wondering if anyone can help me in porting a SHA-512 implemention in Javascript to Actionscript. Since both Javascript and Actionscript share the same origin, I think porting it will be easy for people who are used to Actionscript. The code for sha512 in javascript can be found here: http://pajhome.org.uk/crypt/md...