S > setProperty |
![]() ![]() ![]() |
setProperty
Availability
Flash Player 4.
Usage
setProperty(
"target
",
property
,
value/expression
)
Parameters
target
The path to the instance name of the movie clip whose property is to be set.
property
The property to be set.
value
The new literal value of the property.
expression
An equation that evaluates to the new value of the property.
Returns
Nothing.
Description
Action; changes a property value of a movie clip as the movie plays.
Example
This statement sets the _alpha
property of a movie clip named star
to 30% when the button is clicked:
on(release) { setProperty("star", _alpha, "30"); }
See also
![]() ![]() ![]() |