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

  1. if(this.hitTest(_root.Meg._x,_root.Meg._y,true))
  2. {
  3.    if(Key.isDown(Key.SPACE))
  4.    {
  5.       if(eval("/Variables:MailletPris") != true)
  6.       {
  7.          loadVariablesNum("/web/steppenwolf/tracking.jsp?episode=1&stage=12",0);
  8.          set("/Variables:MailletPris",true);
  9.          set("/Variables:InvNb",eval("/Variables:InvNb") + 1);
  10.          set("/Variables:InvObjet" + eval("/Variables:InvNb"),12);
  11.          tellTarget("/Maillet")
  12.          {
  13.             gotoAndPlay(2);
  14.          }
  15.          tellTarget("_root.Animatique")
  16.          {
  17.             gotoAndStop("SndRamasseObjet");
  18.             play();
  19.          }
  20.          tellTarget("_root.Inventaire.ObjetAffiche")
  21.          {
  22.             gotoAndStop(13);
  23.          }
  24.       }
  25.    }
  26. }
  27.