ActionScript 101 - Visibility
(Page 4 of 5 )
Aside from being an idiot and setting your Xscale and Yscale properties to 0, you can also make an object invisible by using the Visible field. Setting the value of visible to 0 makes it invisible, to 1 makes it visible:
onClipEvent (mouseDown) {
setProperty("", _visible, "0");
}
Rotation
The Rotation property allows you to rotate an object by a certain amount of degrees. To see it in action, enter the following code into the Actions pane:
onClipEvent (mouseDown) {
setProperty("", _rotation, "0");
}
Quality
The Quality property is used to change the quality of the overall scene. It seems that the default Quality value is High. The other values are Low and Medium. We are going to set the value to Low because we want our movie to appear crummy.
onClipEvent (mouseDown) {
setProperty("", _quality, "Low");
}
If you test the movie and click on the object you will see that its quality deteriorates rapidly.
Name
You use the Name property to read or change the name value of an object.
onClipEvent (mouseDown) {
setProperty("", _name, "circle");
}
The above code would change the name of our object to "circle."
Next: Alpha >>
More Flash Articles
More By James Payne