home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / peaceplane.swf / scripts / DefineSprite_154 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-09-05  |  312 b   |  15 lines

  1. myColor = new Color(this);
  2. onEnterFrame = function()
  3. {
  4.    myColor.setTransform(_root.myColorTransform);
  5.    _X = _X - (_root.player.hSpeed + 15) * 0.8;
  6.    if(_X < - (_width - 2))
  7.    {
  8.       _X = _X + (_width - 2) * 3;
  9.    }
  10.    if(_X > (_width - 2) * 2)
  11.    {
  12.       _X = _X - (_width - 2) * 3;
  13.    }
  14. };
  15.