home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / pepsi_pinball.swf / scripts / DefineSprite_147 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-05-18  |  268 b   |  18 lines

  1. function animateLight()
  2. {
  3.    gotoAndPlay(5);
  4. }
  5. function setLightOff()
  6. {
  7.    gotoAndStop(1);
  8.    for(i in _root.gateSwitch)
  9.    {
  10.       if(gateSwitch[i].hitStatus)
  11.       {
  12.          gateSwitch[i].mc.gotoAndStop("on");
  13.       }
  14.    }
  15. }
  16. stop();
  17. setLightOff();
  18.