home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / rooftopmadness.swf / scripts / DefineSprite_150 / frame_3 / DoAction.as
Encoding:
Text File  |  2006-05-23  |  315 b   |  20 lines

  1. setProperty(this, _X, this._x + 8);
  2. setProperty(this, _Y, this._y + yMove);
  3. if(this._y < mLevel - 60)
  4. {
  5.    yMove = 2;
  6. }
  7. else if(mLevel < this._y)
  8. {
  9.    yMove = -2;
  10. }
  11. if(820 < this._x)
  12. {
  13.    setProperty(this, _X, -100);
  14.    gotoAndStop(1);
  15.    with(_level0.rndRobin)
  16.    {
  17.       gotoAndPlay(1);
  18.    }
  19. }
  20.