home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 (Special) / OC021.iso / Juegos / miniscrapercaper / miniscrapercaper.swf / scripts / DefineSprite_57 / frame_2 / DoAction.as
Encoding:
Text File  |  2006-02-02  |  429 b   |  16 lines

  1. xPos = _X;
  2. yPos = _Y;
  3. mcBackground._x -= xPos;
  4. mcBackground._y -= yPos;
  5. mcAnimation._x -= xPos;
  6. mcAnimation._y -= yPos;
  7. var stageWidth = Stage.width;
  8. var stageHeight = Stage.height;
  9. var centerStageX = stageWidth / 2;
  10. var centerStageY = stageHeight / 2;
  11. mcBackground._width = stageWidth;
  12. mcBackground._height = stageHeight;
  13. mcAnimation._x += centerStageX;
  14. mcAnimation._y += centerStageY - stageHeight / 10;
  15. stop();
  16.