setProperty()

Availability

Flash Lite 1.0.

Usage

setProperty(target, property, value/expression)

Operands

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.

Description

Function; changes a property value of a movie clip as the movie plays.

Example

The following statement sets the _alpha property of the star movie clip to 30 percent when the user clicks the button associated with this event handler:

on(release) {
    setProperty("star", _alpha, "30");
}

See also

getProperty()