home *** CD-ROM | disk | FTP | other *** search
- class com.neodelight.v2D.AnimationManager
- {
- var mc;
- var engine;
- var config;
- var fxLib;
- var prefix;
- var fader;
- function AnimationManager(mc, engine)
- {
- this.mc = mc;
- this.engine = engine;
- this.config = engine.config;
- this.fxLib = this.config.animManagerFx;
- this.prefix = "";
- this.fader = new com.neodelight.std.ColorFader(this.mc);
- }
- function visualize(stat, priority)
- {
- if(this.fxLib[stat])
- {
- this.fader.fadeTo(this.fxLib[stat],0);
- this.fader.fadeTo(com.neodelight.std.ColorFader.FX_NONE,this.fxLib[stat].dt);
- this.engine.animMgrStep = true;
- }
- else
- {
- this.fader.reset();
- this.engine.animMgrStep = false;
- this.mc.gfx.gotoAndPlay(this.prefix + stat);
- }
- }
- function move()
- {
- if(!this.fader.step())
- {
- this.engine.animMgrStep = false;
- }
- }
- }
-