ActionScript 3 Code Snippets

Need to adjust this code to be encapsulated. Linestyle is not being called correctly.

22 May, 2013   

Example code shows how to draw a Linear Gradient

I was trying to pass an array through SWFObject flashvars and realized it can't be done. Instead you need to use a string for your array, pass it into Flash , then convert it to an array using the actionscript "split" function.

06 June, 2011   

This reorders the elements of an array into a random order.

I was trying to pass an array through SWFObject flashvars and realized it can't be done. Instead you need to use a string for your array, pass it into Flash , then convert it to an array using the actionscript "split" function.

Here is the code for donating a fixed amount. This option adds an item at the dollar amount you set to the PayPal cart

22 February, 2011   

Simple usage: var xmlLoader:LoadXMLUtil = new LoadXMLUtil("pathtoxml.xml"); xmlLoader.addEventListener(Event.COMPLETE, onLoaderComplete); private function onLoaderComplete(event:Event):void{ trace("Loaded XML: "); trace(xmlLoader.xml); }