home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / snowball.swf / scripts / DefineSprite_204 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  486 b   |  30 lines

  1. this.onEnterFrame = function()
  2. {
  3.    if(_root.startmoving == 1)
  4.    {
  5.       this._y -= _root.snowball.yspeed;
  6.       if(_Y < -100 - _height)
  7.       {
  8.          _Y = 500;
  9.          _X = random(600);
  10.          this.gotoAndStop(1);
  11.       }
  12.    }
  13.    if(this.hitTest(_root.snowball.detector))
  14.    {
  15.       if(_root.weight < 600)
  16.       {
  17.          _root.snowball.play();
  18.       }
  19.       else
  20.       {
  21.          this.play();
  22.       }
  23.    }
  24.    else
  25.    {
  26.       _X++;
  27.    }
  28. };
  29. stop();
  30.