Setproperty Function - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

count++;
}
}
In a new document, instantiate a new instance of the new class:
var custom:CustomClass = new CustomClass();
See also
clearInterval function

setProperty function

setProperty(target:Object, property:Object, expression:Object) : Void
Changes a property value of a movie clip as the movie clip plays.
Availability: ActionScript 1.0; Flash Player 4
Parameters
- The path to the instance name of the movie clip whose property is to be set.
target:Object
- The property to be set.
property:Object
expression:Object
evaluates to the new value of the property.
Example
The following ActionScript creates a new movie clip and loads an image into it. The
coordinates are set for the clip using
, the
coordinate of a movie clip named
right_btn
_x
this.createEmptyMovieClip("params_mc", 999);
params_mc.loadMovie("http://www.helpexamples.com/flash/images/image1.jpg");
setProperty(this.params_mc, _y, 20);
setProperty(this.params_mc, _x, 20);
this.right_btn.onRelease = function() {
setProperty(params_mc, _x, getProperty(params_mc, _x)+20);
};
See also
getProperty function
100
ActionScript language elements
,
updateAfterEvent function
- Either the new literal value of the property, or an equation that
setProperty()
,
class statement
. When you click the button called
is incremented by 20 pixels.
params_mc
and
_x
_y

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF