Tutorials Books Videos Forums

Change the theme! Search!
Rambo ftw!

Customize Theme


Color

Background


Done

AS Tricks

filed under Flash and ActionScript

This is an archived tutorial from the kirupa.com legacy collection. It covers software that may no longer be available, but it is kept online because the ideas still hold up.

 home : actionscript : tricks
comment your code
naming conventions
global variables
the var declaration
variable scope
relative addressing
_root, _parent and this
incrementation/decrementation
getting an index position from an array
array duplication
simple if...else tests
passing variables
the tertiary operator
easy random color
color object
drawing api
dynamic event handlers with Flash MX
for...in loops
random numbers
#include of a code
solve cache problems when loading a movie
using prototypes instead of functions

Just a final word before we wrap up. What you've seen here is freshly baked content without added preservatives, artificial intelligence, ads, and algorithm-driven doodads. A huge thank you to all of you who buy kirupa's books, became a paid subscriber, watch the videos, and/or interact on the forums.

Your support keeps this site going! 😇

The KIRUPA Newsletter

Thought provoking content that lives at the intersection of design 🎨, development 🤖, and business 💰 - delivered weekly to over a bazillion subscribers!

SUBSCRIBE NOW

Creating engaging and entertaining content for designers and developers since 1998.

Follow:

Popular

Loose Ends

:: Copyright KIRUPA 2026 //--