home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / roam-and-protect.swf / scripts / DefineSprite_390 / frame_4 / DoAction.as
Encoding:
Text File  |  2005-09-29  |  246 b   |  11 lines

  1. if(_X > 486 or _X < -2)
  2. {
  3.    eval("_root.ship" add mynum).gotoAndPlay("off");
  4. }
  5. else
  6. {
  7.    _X = _parent.targbox._x + eval("_root.ship" add mynum)._x * 0.1;
  8.    _Y = eval("_root.ship" add mynum)._y * 0.1;
  9. }
  10. gotoAndPlay(_currentframe - 1);
  11.