home *** CD-ROM | disk | FTP | other *** search
/ PC Extra 07 & 08 / pca1507.iso / Software / psp8 / Data1.cab / psp_help.swf / scripts / DefineSprite_1 / frame_1 / DoAction.as
Encoding:
Text File  |  2003-04-22  |  677 b   |  23 lines

  1. if(_global.a == "playing")
  2. {
  3.    setProperty(_global.sli, _X, Math.round(_global.mov._currentframe / _global.mov._totalframes * 520) + 60);
  4.    _global.fra.text = _global.mov._currentframe;
  5. }
  6. if(_global.mov._currentframe <= 1)
  7. {
  8.    _global.pla.gotoAndStop(1);
  9. }
  10. if(_global.mov._currentframe >= _global.mov._totalframes)
  11. {
  12.    _global.pla.gotoAndStop(10);
  13. }
  14. _global.sec = Math.ceil((_global.mov._totalframes - _global.mov._currentframe) / 12);
  15. if(_global.sec % 60 < 10)
  16. {
  17.    _global.clock.text = "-" + Math.floor(_global.sec / 60) + ":" + "0" + _global.sec % 60;
  18. }
  19. else
  20. {
  21.    _global.clock.text = "-" + Math.floor(_global.sec / 60) + ":" + _global.sec % 60;
  22. }
  23.