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

  1. if(this.hitTest(_root.Meg._x,_root.Meg._y,true) and eval("/Variables:GrosVu") == true)
  2. {
  3.    if(Key.isDown(Key.SPACE) and eval("/Variables:ObjetSelect") == 10 and eval("/Variables:BouteillePris") != true)
  4.    {
  5.       set("/Variables:BouteillePris",true);
  6.       tellTarget("/Animatique")
  7.       {
  8.          gotoAndStop("Bouteille2");
  9.       }
  10.    }
  11.    if(Key.isDown(Key.SPACE) and eval("/Variables:ObjetSelect") != 10 and eval("/Variables:BouteillePris") != true and eval("/Variables:GrosVu") == true)
  12.    {
  13.       tellTarget("/Animatique")
  14.       {
  15.          gotoAndStop("Bouteille1");
  16.       }
  17.    }
  18. }
  19.