home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / rebound.swf / scripts / frame_17 / PlaceObject2_400_112 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2006-06-13  |  533 b   |  24 lines

  1. onClipEvent(enterFrame){
  2.    if(this.hot.hitTest(_root.ball) and pushbar == 0)
  3.    {
  4.       pushbar = 1;
  5.       i = 14;
  6.       while(i <= 18)
  7.       {
  8.          if(_root["ban" add i]._currentframe == 3)
  9.          {
  10.             _root["ban" add i].gotoAndStop(4);
  11.          }
  12.          else if(_root["ban" add i]._currentframe == 4)
  13.          {
  14.             _root["ban" add i].gotoAndStop(3);
  15.          }
  16.          i++;
  17.       }
  18.    }
  19.    if(this.hot.hitTest(_root.ball) == false and pushbar == 1)
  20.    {
  21.       pushbar = 0;
  22.    }
  23. }
  24.