Frames 

 No Frames

Previous Element
InitActions

Next Element
InitClipActions


InitClip

This element contains an initialization script to be executed for the specified MovieClip element before any instances of the elements are referenced. There can only be one InitClip element per MovieClip definition. InitClip actions are most commonly used to define ActionScript classes and to map ExportSymbol elements to ActionScript classes.
By default the script is expected as element content however the use of the optional 'src' attribute permits an external script to be identified using a URL. If this is specified then all element content is ignored.

Consult documentation on ActionScript for more information on scripting.

Attributes

name The id for the Movie Clip symbol within the movie.
TypeString
src Optional attribute indicating the URL from which to read the script.
TypeString

Child Elements

None

Parent Elements

InitClipActions

Examples

Example Of MovieClip classes
Example Of MovieClip classes and scripted animations

Previous Element
InitActions

Next Element
InitClipActions