Wednesday, February 17, 2010

Useful Movie Clip Properties

Access these properties with dot notation!
myMovieClipInstance.property
For example:
startPage.alpha
to access the alpha properties of "startPage".

Anyhow, here's a list o' properties.
alpha = transparency        Takes a value from 0 -1. Default is 1 (opaque).
height = height in pixels   1 is lowest possible value. Decimals are okay.
width = width in pixels     1 is lowest possible value. Decimals are okay.
rotation = rotation in degrees  0 to180 = clockwise. 0 to -180 = counter clockwise.
scaleX = horizontal scale of an object    Default is 1. This is a percentage, so .5 = 50%, 2 = 200%, etc.
scaleY = vertical scale of an object    Default is 1. This is a percentage, so .5 = 50%, 2 = 200%, etc.
visible = visibility  This is a Boolean value. It is either true or false.
x  =  x position on the stage    In pixels. Up left of stage is x = 0, positive x is to right of stage.
y = y position on the stage      In pixels. Upper left corner of stage is y = 0. positive y is down stage.

No comments: