home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Puzzle / casual_gameplay_escape.swf / scripts / DefineSprite_570_sodacircle / frame_1 / DoAction.as
Text File  |  2008-09-05  |  468b  |  24 lines

  1. this._x = Math.random() * 400 - 200;
  2. if(this.alphad != true)
  3. {
  4.    stop();
  5.    this.alphad = true;
  6.    this._alpha = 0;
  7. }
  8. this.onEnterFrame = function()
  9. {
  10.    if(this.prompted == true)
  11.    {
  12.       if(this.ranonce != true)
  13.       {
  14.          this.ranonce = true;
  15.          this.ranframe = Math.round(Math.random() * 600);
  16.          this.gotoAndPlay(this.ranframe);
  17.       }
  18.    }
  19.    if(this._alpha < 73 && this.ranonce)
  20.    {
  21.       this._alpha += 1;
  22.    }
  23. };
  24.