home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / episode1.swf / scripts / DefineSprite_2160 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-03-20  |  879 b   |  27 lines

  1. if(this.hitTest(_root.Meg._x,_root.Meg._y,true))
  2. {
  3.    if(Key.isDown(Key.SPACE) and eval("/Variables:BatterySaute") != true and eval("/Variables:ObjetSelect") != 3 and eval("/Variables:BatteryBranchee") != true)
  4.    {
  5.       set("/Variables:BatterySaute",true);
  6.       tellTarget("/Animatique")
  7.       {
  8.          gotoAndStop("Battery1");
  9.       }
  10.    }
  11.    if(Key.isDown(Key.SPACE) and eval("/Variables:ObjetSelect") == 3 and eval("/Variables:BatteryBranchee") != true)
  12.    {
  13.       tellTarget("/Animatique")
  14.       {
  15.          gotoAndStop("Battery2");
  16.       }
  17.    }
  18.    if(Key.isDown(Key.SPACE) and eval("/Variables:BatteryBranchee") == true and eval("/Variables:CrochetMis") == true and eval("/Variables:MoteurStarte") != true)
  19.    {
  20.       set("/Variables:MoteurStarte",true);
  21.       tellTarget("/Animatique")
  22.       {
  23.          gotoAndStop("Battery3");
  24.       }
  25.    }
  26. }
  27.