home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / orbular.swf / scripts / DefineSprite_183_GameOver / frame_1 / DoAction.as
Encoding:
Text File  |  2007-12-12  |  389 b   |  20 lines

  1. onEnterFrame = function()
  2. {
  3.    if(this.getDepth() != _root.getNextHighestDepth() - 1)
  4.    {
  5.       this.swapDepths(_root.getNextHighestDepth());
  6.    }
  7.    if(done)
  8.    {
  9.       return undefined;
  10.    }
  11.    this._alpha -= (this._alpha - 100) / 10;
  12.    if(this._alpha > 95)
  13.    {
  14.       this._alpha = 100;
  15.       done = true;
  16.    }
  17. };
  18. _alpha = 0;
  19. men.swapDepths(getNextHighestDepth());
  20.