this
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
this.property
this.property = value

Arguments
property: Any property of the current Object.
value: New value of the property.

Description
Synonym for the current Sprite / Movie Clip / Object that contains this script element.
An Event Handler for the Object can use this synonym to access any property associated with the Object that called the method.

This is extremely useful when Instances of a Sprite / Movie Clip are made. If the Sprite makes reference to this (rather than via Object name) then each Instance will be self-contained and independent.

Sample
this.stop();   // stop the current Sprite / Movie Clip 

See Also
_parent and _root.