Hello there, Have you ever wondered how to scale a movieclip in proportion to height or width? Well this quick tip is here to help you do just that!
Lets get right to the juicy stuff:
myMovieClip_MC.width = 300; myMovieClip_MC.scaleY = myMovieClip_MC.scaleX;
This code will scale the target clip (myMovieClip_MC) to 300 width or any other desired width!
To do this for height simply reverse the methods to the opposite:
myMovieClip_MC.height = 300; myMovieClip_MC.scaleX = myMovieClip_MC.scaleY;
Isn’t it amazing! Now go with your new found knowledge and conquer your AS3!



