Posted By

koriner on 01/28/11


Tagged

resize image fullscreen


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

kure69
AndrewPotter
onemanstudio
dubogii
merritt212
Internet-Uzver


Full screen image resize (proportionate)


 / Published in: ActionScript 3
 

  1. image.height = stage.stageHeight;
  2. image.width = stage.stageWidth;
  3. image.scaleX = image.scaleY = Math.max( image.scaleX, image.scaleY );

Report this snippet  

You need to login to post a comment.