<classwork>

Events


Everything that happens in Flash is the result of an event that causes a script to execute. Even, for example, the user clicking a button that causes the move to skip ahead, the instructions (to skip ahead) results from the click "mouse event".

The three types of events are:

keyframe events : (keyframes) A script on a frame will execute when flash reaches that frame.

mouse events: (button instances) A script on a button will execute depending on the mouse event you want it to respond to
ex. on()
on (release)

clip events: (movie clip instances) A Script on Movie clip instances need event instruction as well.
ex. onClipEvent()
onClipEvent(EnterFrame), or onClipEvent(Load): when the frame is reached loop the instructions on entering the frame, or when the movie clip is fully loaded do the instructions.

After an event happens, a script is executed. The instructions that Flash follows can be simple or complex.