Jump to content
Search Community

lock scale ratio while [SOLVED]

DeltaFrog test
Moderator Tag

Recommended Posts

Hey is there an easy way to lock the width and height ratio? I'm trying to set the width of the mc equal to the stage but have the height keep to scale also. So the wider I open my stage the taller the mc gets also. :S Thanks in advance.

 

sizeXListener = new Object();

sizeXListener.onResize = resizerX;

Stage.addListener(sizeXListener);

function resizerX() {

TweenLite.to(main,0,{_width:Math.floor(Stage.width)});

}

resizerX();

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...