home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / midnightstrike1.swf / scripts / DefineSprite_706 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-04-02  |  593 b   |  24 lines

  1. var fader = new com.neodelight.std.ColorFader(_root.levelMc);
  2. var fx0 = {ra:100,rb:0,ga:100,gb:0,ba:100,bb:0,aa:100,ab:0};
  3. var fx1 = {ra:100,rb:0,ga:0,gb:0,ba:0,bb:0,aa:100,ab:0};
  4. var steps = 12;
  5. this.fader.fadeTo(fx1,this.steps);
  6. eventStartFx = function()
  7. {
  8.    this.onEnterFrame = function()
  9.    {
  10.       if(!this.fader.step())
  11.       {
  12.          var _loc2_ = this.fx0;
  13.          this.fx0 = this.fx1;
  14.          this.fx1 = _loc2_;
  15.          this.fader.fadeTo(fx1,this.steps);
  16.       }
  17.    };
  18. };
  19. eventStopFx = function()
  20. {
  21.    delete this.onEnterFrame;
  22.    this.fader.clearFx();
  23. };
  24.