Sprite / Movie Clip (Object)
Top  Previous  Next


SWiSHscript Sprites are equivalent in concept to Flash 'MovieClips'.

Sprites support both properties and methods. Events associated with a Sprite are handled by the associated Event Handling routines. Sprites do not support all of the Movie Clips properties and methods. A list of supported items can be found in Movie Clip Methods and Properties.

The property can be accessed via spritename.property, where spritename is the name of the Sprite and property is the property being accessed.

The methods can be applied via spritename.method(), where spritename is the name of the Sprite and method() is the method being applied.

The synonym 'this' can be used to mean the current Sprite / Object where scripting is used within the Sprite.
If the synonym 'this' is omitted, it is assumed when valid property names or methods are specified.

e.g. this._X = 5; is equivalent to _X = 5; if the script is contained within the Sprite Object.