Recently Added

Preloader values – reversing and resizing

Posted by thornyeternity in ActionScript 3 Snippets on 01. Apr, 2009 | No Comments

Two quick formulas to reverse properties of objects while preloading (eg. big to small)

Loading images dynamically (and smoothing them).

Posted by thornyeternity in ActionScript 3 Snippets on 01. Apr, 2009 | No Comments

Setting up loader, listeners and preloader to load images; get the loaded content property information; 2 methods to smooth bitmaps that are loaded.

Re-use Loader & Removing content

Posted by thornyeternity in ActionScript 3 Snippets on 01. Apr, 2009 | No Comments

Re-using the same loader to prevent chaotic nesting when loading flash movies into other swf files. Deleting the existing content so its no longer there (quickly – listeners not removed will still be an issue).

AS3 Keyboard Keycode for move arrows

Posted by thornyeternity in ActionScript 3 Snippets on 01. Apr, 2009 | No Comments

Tracing Up, Down, Left & Right arrow keys easily with ActionScript 3.

Internal ActionScript 3 Preloader

Posted by thornyeternity in ActionScript 3 Snippets on 01. Apr, 2009 | No Comments

AS3 Preloader within the movie itself – can be useful; or not.

Swap and Reverse Property

Posted by thornyeternity in ActionScript 3 Snippets on 01. Apr, 2009 | No Comments

Reversing properties in a seamless loop – old code.

Horizontal Object Placement & Alignment Formula

Posted by thornyeternity in ActionScript 3 Snippets on 31. Mar, 2009 | No Comments

Easy AS3 code to space and align items (such as sprites, movie clips, etc).

GSkinner and TweenMax – recommendation and over-view.

Posted by thornyeternity in ActionScript 3 Snippets on 31. Mar, 2009 | No Comments

Quick over-view of implementing the excellent Tween Classes written by the GSkinner.

FlashVars in FL_RunContent

Posted by thornyeternity in ActionScript 3 Snippets on 31. Mar, 2009 | No Comments

This DOESN’T WORK unless you add FlashVars to the Javascript part of the HTML as well. Find the “AC_FL_RunContent” function and add the following line to the middle of the list of parameters: ‘FlashVars’, ‘myURL=http://weblogs.adobe.com/’,

Rotation Formula

Posted by thornyeternity in ActionScript 3 Snippets on 31. Mar, 2009 | No Comments

Good formula for random rotation of object without going to far to either side: box_mc.rotation = (Math.random()*2-1) * 180/Math.PI;