Full screen image resize (proportionate)

/ Published in: ActionScript 3
Save to your folder(s)

Copy this code and paste it in your HTML
  1. image.height = stage.stageHeight;
  2. image.width = stage.stageWidth;
  3. image.scaleX = image.scaleY = Math.max( image.scaleX, image.scaleY );

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.