;

PDA

Click to See Complete Forum and Search --> : how to use scaleX and scaleY props


absolutezero342
10-28-2007, 05:13 PM
what is the right way to use the scaleX and scaleY properties? I don't quite understand how to use them...

right now, I'm using this, but I think scaleX and scaleY would be a better idea:


if(condition){
some_mc.width++;
some_mc.height++;
}
else{
some_mc.width--;
some_mc.height--;
}

illustratedlife
10-29-2007, 02:44 AM
scaleX and scaleY are the percentage of its original size that you have blown up/shrunk an object. It is on a 1-unit scale. If scaleX == .75, the object is 3/4 as wide as it originally was.