home *** CD-ROM | disk | FTP | other *** search
/ Exame Informatica 140 / Exame Informatica 140.iso / Programas / XnView / XnView-beta / WebTemplate / Visuddhi - Flash viewer / viewer.swf / scripts / frame_2 / DoAction.as
Encoding:
Text File  |  2006-09-09  |  639 b   |  28 lines

  1. function onResize()
  2. {
  3.    var _loc3_ = Stage.width;
  4.    var _loc2_ = Stage.height;
  5.    if(_global.SVStageWidth != undefined)
  6.    {
  7.       _loc3_ = _global.SVStageWidth;
  8.    }
  9.    if(_global.SVStageHeight != undefined)
  10.    {
  11.       _loc2_ = _global.SVStageHeight;
  12.    }
  13.    mcPreloader._x = Math.round(_loc3_ / 2);
  14.    mcPreloader._y = Math.round(_loc2_ / 2);
  15. }
  16. stop();
  17. Stage.align = "TL";
  18. Stage.scaleMode = "noScale";
  19. _quality = "best";
  20. System.security.allowDomain("*");
  21. if(_root.preloaderColor != undefined)
  22. {
  23.    var col = new Color(mcPreloader);
  24.    col.setRGB(_root.preloaderColor);
  25. }
  26. Stage.addListener(this);
  27. onResize();
  28.