home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / jump_dontstop.swf / scripts / DefineSprite_23_sprite / frame_3 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  437 b   |  16 lines

  1. if(_root.xx > 10)
  2. {
  3.    this._y += 25;
  4. }
  5. else
  6. {
  7.    this._x += (_root["a" add _root.xx add "_" add _root.yy]._x - _root.sprite.sprite1.xpoint) / 2;
  8.    this._y = this._y + (_root["a" add _root.xx add "_" add _root.yy]._y - _root.sprite.sprite1.ypoint) / 2 - 25;
  9.    if(_root["a" add _root.xx add "_" add _root.yy]._visible == true)
  10.    {
  11.       boing = new Sound();
  12.       boing.attachSound("boing");
  13.       boing.start();
  14.    }
  15. }
  16.