home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / david.swf / scripts / DefineSprite_83 / frame_2 / DoAction.as
Encoding:
Text File  |  2007-03-28  |  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.