home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / PrettyBang.swf / scripts / DefineSprite_93 / frame_17 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  241 b   |  13 lines

  1. this._x += dx * _parent.max_speed / 2;
  2. this._y += dy * _parent.max_speed / 2;
  3. this._rotation += 10;
  4. if(Math.abs(this._x) > _parent.frame._width / 2 - 64)
  5. {
  6.    this.dx = - this.dx;
  7. }
  8. if(this._y < 0)
  9. {
  10.    prevFrame();
  11.    play();
  12. }
  13.