Auto Align on Resize


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

Coments, Coments, And More Coments,


Copy this code and paste it in your HTML
  1. #include "as/mc_tween2.as"
  2. // the tween module you wish to use.
  3.  
  4. Stage.scaleMode = "NoScale";
  5. Stage.align = "TL";
  6.  
  7. var resizeHandler:Object = new Object();
  8. resizeHandler.onResize = scaleMc;
  9. function scaleMc():Void {
  10.  
  11.  
  12. }
  13.  
  14. Stage.addListener(listener);
  15.  
  16. scaleMc();
  17. Stage.addListener(resizeHandler);

URL: www.blabla.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.