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

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