![]()  | ![]()  | 
Previous  |         Next  | |
7.7 Scripting
Most SWF movies contain scripting elements, that allows users to add interactions and behaviours to their SWF symbols. At the SWF level, scripting elements can occur in four locations:
- As Button event handlers, scripts are associated directly with the button
 - As Movie Clip event handlers, scripts are associated with the placement of a MovieClip symbol on a timeline
 - As InitClip blocks for MovieClips, the scripts are executed when a MovieClip symbol is defined
 - As Frame actions, the scripts are executed when a frame is about to be displayed and after InitClip scripts have been executed.
 
When ActionScript 2.0 classes are used within an SWF, each class is associated with a MovieClip symbol, and the definition of the class is represented as an InitClip script.
Previous  |         Next  | |
Copyright 2003-2005 Kinesis Software. All rights reserved.

