setProperty()
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
[instance.]setProperty([instancename,] property, value)

Arguments
instancename: The Instance name of a Movie Clip for which the property is being set. This can either be the Instance name (using slash notation) or the _target property. If omitted, the Instance specified by instance is used. If instance is omitted, defaults to 'this'.

property: A property of a Sprite / Movie Clip.

Returns
The specified property value.

Description
Function: Returns the value of the specified property for the Movie Clip instancename.

Sample
moves the object s1 to x = 300 then to x = 100
onFrame (10
{
    setProperty(_root.s1._target, _X, 300);
}


onFrame (20
{
    setProperty("/s1",_X, 100);
}



See Also
getProperty() and setProperty().