A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: how to use scaleX and scaleY props

  1. #1
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508

    how to use scaleX and scaleY props

    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:

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

  2. #2
    Multitouch Aficionado
    Join Date
    Mar 2006
    Posts
    275
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center