A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] Scale Movieclip to Stage

  1. #1
    Senior Member
    Join Date
    Jul 2001
    Posts
    289

    [F8] Scale Movieclip to Stage

    How do you scale a movieclip that stays proportional to the stage even when the stage sizes changes?

    I'm still a noob, so if you can be a little more detailed that would be awesome!

    Thanks!
    Jordan
    Jordan

  2. #2
    Junior Member
    Join Date
    Nov 2006
    Posts
    6
    put the size(width and height) of the stage in a variable in percentage (%) and assign it to the size (_xscale and _yscale, values) of the movieclip.


    eg: mc._xscale=stage.width*100/100;
    mc._yscale=stage.height*100/100;

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Posts
    289
    hmm.. as I said I am a newbie.. having trouble figuring out what you mean?
    Jordan

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