• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Handlers

Handlers

Handler Syntax and Description Example(s)
on
on (mouseEvent) {
  statement;
}

The mouseEvent action can have one of the following arguments: press, release, releaseOutside, rollOver, rollOut, dragOver, dragOut, or KeyPress("key"). Specifies a mouse action or keypress that triggers an action.
on (rollOver, dragOver) {
  gotoAndStop(5);
}
on (rollOut, dragOut) {
  gotoAndStop(10);
}

onClipEvent
onClipEvent(movieEvent) {
  statements;
}

movieEvent: an event that executes actions that are assigned in the statements of the onClipEvent. The action can have one of the following events: load, unload, enterFrame, mouseMove, mouseDown, mouseUp, keyDown, keyUp, or data.

Triggers actions defined in the statements for a specific instance of a movie clip.
onClipEvent(load) {
  gotoAndPlay(14);
}



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint