home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 7.46 / pcgamercd / Data / ads.pcg / scripts / DefineSprite_241 / frame_3 / DoAction.as
Text File  |  2004-07-16  |  371b  |  22 lines

  1. if(_parent.banner_display_time < current_time - start_time)
  2. {
  3.    current_time = 0;
  4.    start_time = 0;
  5.    tellTarget("banners")
  6.    {
  7.       if(_currentframe == _parent._parent.num_banners)
  8.       {
  9.          gotoAndStop(1);
  10.       }
  11.       else
  12.       {
  13.          gotoAndStop(_currentframe + 1);
  14.       }
  15.    }
  16.    gotoAndPlay(1);
  17. }
  18. else
  19. {
  20.    gotoAndPlay(2);
  21. }
  22.