Flash and Actionscript 911

Here is our list of Flash and Actionscript resources, including tutorials, sample code, and articles on makin’ the monays from your Flash creations.
Understanding Classes in AS3
- Part 1 – Move your first-frame code into its own .as Class file
- Part 2 – Write a custom Class for the MovieClips in your library
- Part 3 – Decide which pieces of code should be written as separate Classes
- Part 4 – Learn all about encapsulation and how to break it
Flash Tutorials
- Fade MovieClips In and Out Solidly
- Twitter Updates in Flash Part 2
- Resample Bitmaps in Flash AS3
- Building a Flash/AS3 FPS (Frames Per Second) Counter
- Pause Your Game in Flash AS3
- Pull Twitter Updates into Flash
- Flash 3D Depth Management
- Get a random number
- Instantiate a class using a dynamic name
- Build a paginated gallery with back/next arrows
- Add sound effects without using the Sound class
Making money from Flash
Helper Class
These articles list methods that you can include in a super-useful helper class to cut down on your code (and the time you spend writing it!)
- PadStringWithZeroes – display a score as 0000010 instead of 10
- RandomBoolean – throw Boolean TRUE or FALSE randomly
- FindAngle – find the angle between two points
- RadiansToDegrees and DegreesToRadians – helpful conversion methods for trigonometry
- ShowDisplayList – trace out all of a DisplayObject’s children
- Fence – keep a value constrained within a rectangle
- Wrap – constrain a value between min and max values
AS3 Pitfalls
- my stop(); action is ignored in a nested MovieClip
- i can’t unload content in Flash Player 9
- the keyboard is not responding when I test my movie
- ._xscale (and xscale) don’t work any more
- Error #1009: Cannot access a property or method of a null object reference.
- Italicized and bolded fonts aren’t showing up in my dynamic text field
- I can’t use BitmapData methods on images loaded from another domain
- TextField.setSelection isn’t working
- MouseEvent.DOUBLE_CLICK doesn’t work
AIR Pitfalls
Transitioning to AS3
Popularity: 19% [?]










