ActionScript Code Snippets

05 December, 2013   

AppleScript Source Code for Evernote Notebooks Backup

05 December, 2013   

AppleScript to send URL from Mac browser to Prowl (iOS)

03 October, 2013   

This will draw a curved line with actionscript.

11 October, 2011   

You will need to create two buttons one that will be your play/pause button and another that that will be your stop button. Also be sure to define the path of the sound file.

11 October, 2011   

In the same way you often need to format data being sent from Flash, you sometimes need to format data being received. This function takes a string and removes all spaces from it. Here we use the split method of the String class to split the string into an Array and then call the join method of the Array class to convert it back to a string....

This is a short way of positioning display objects in a grid layout. It makes use of the modulo operator (%) to position each display object along the x axis and the floor method of the Math class for the y position. This example creates 20 instances of a custom display object called MyDisplayObject positioning each instance in a grid 5 columns...

18 May, 2011   

To randomize an array we loop over the length of the array, removing an object chosen at random and then adding it back onto the Array’s end position. Think of this as having a deck of cards where you pick a card at random from the deck and move it to the top of the stack repeated for the total number of cards in the deck. It’s important to...

30 December, 2010   

AS2 connect navigation