home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / invaders.swf / scripts / DefineSprite_68 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-03-20  |  471 b   |  24 lines

  1. if(_root.LaserBase._currentframe == 1)
  2. {
  3.    tellTarget(_root.LaserBase)
  4.    {
  5.       if(Key.isDown(39) && _X < 500)
  6.       {
  7.          _X = _X + 6;
  8.       }
  9.       else if(Key.isDown(37) && 20 < _X)
  10.       {
  11.          _X = _X - 6;
  12.       }
  13.    }
  14.    if(Key.isDown(32) && !_root.LaserFire._visible)
  15.    {
  16.       _root.Sound.gotoAndPlay("Fire");
  17.       tellTarget(_root.LaserFire)
  18.       {
  19.          _X = _root.LaserBase._x;
  20.          _visible = true;
  21.       }
  22.    }
  23. }
  24.