Actionscript Snippets: Movie Clip Handler

Snippet Name: Movie Clip Handler
Submitted By: Mark
Description: In Flash you can attach code to Movie Clips. To do that, you must click on the object and then drop the code there.

Snippet

onClipEvent (load){
this.x = this.x+20 // this will move the object by 20 pixels
this.stop(); // all actions are stopped
}