Actionscript movie clip properties

Description: Location
Property: x, y
Syntax for Setting Value:

box.x = 100;
box.y = 100;

Units and/or Range: pixels

Description: Scale (1)
Property: scaleX, scaleY
Syntax for Setting Value:

box.scaleX = .5;
box.scaleY = .5;

Units and/or Range: percent / 0-1

Description: Scale (2)
Property: width, height
Syntax for Setting Value:

box.width = 72;
box.height = 72;

Units and/or Range: pixels

Description: Rotation
Property: rotation
Syntax for Setting Value:

box.rotation = 45;

Units and/or Range: degrees / 0-360

Description: Transparency
Property: alpha
Syntax for Setting Value:

box.alpha = .5;

Units and/or Range: percent / 0-1

Description: Visibility
Property: visible
Syntax for Setting Value:

box.visible = false;

Units and/or Range: Boolean

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.