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

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