home *** CD-ROM | disk | FTP | other *** search
- package ENGINE.INTERFACE.ANIMATORS
- {
- import ENGINE.INTERFACE.OIObject;
-
- public class OAnimatorManager
- {
-
- public static const anActivate:int = 2;
-
- public static const anDeactivate:int = 3;
-
- public static const anShow:int = 0;
-
- public static const iAnimatorsCount:int = 10;
-
- public static const anHide:int = 1;
-
- public static const anPress:int = 8;
-
- public static const anRoolOver:int = 6;
-
- public static const anUnpress:int = 9;
-
- public static const anFocusOut:int = 5;
-
- public static const anRoolOut:int = 7;
-
- public static const anUncheck:int = 10;
-
- public static const anCheck:int = 9;
-
- public static const anFocusIn:int = 4;
-
- public static const iNullAnimators:Array = [null,null,null,null,null,null,null,null,null,null];
-
-
- private var iPlaying:Array;
-
- private var iTarget:OIObject;
-
- public function OAnimatorManager(param1:OIObject)
- {
- super();
- this.iTarget = param1;
- this.iPlaying = new Array();
- }
-
- public function get prAnimation() : Boolean
- {
- return iPlaying.length > 0;
- }
-
- public function AddAnimator(param1:Object) : void
- {
- var _loc2_:* = undefined;
- if(param1 == null)
- {
- return;
- }
- if(this.iPlaying.length > 0)
- {
- this.iPlaying[0].Return();
- }
- _loc2_ = param1.F(param1);
- _loc2_.prTarget = this.iTarget;
- this.iPlaying.push(_loc2_);
- }
-
- public function OnEnterFrame() : void
- {
- if(this.iPlaying.length == 0)
- {
- return;
- }
- switch(this.iPlaying[0].State)
- {
- case OAnimator.stEnd:
- this.iPlaying[0] = null;
- this.iPlaying.splice(0,1);
- break;
- case OAnimator.stPause:
- this.iPlaying[0].State = OAnimator.stStart;
- break;
- case OAnimator.stPlay:
- this.iPlaying[0].Play();
- }
- }
-
- public function Free() : void
- {
- this.iTarget = null;
- this.iPlaying = null;
- }
- }
- }
-