home *** CD-ROM | disk | FTP | other *** search
- package ENGINE.INTERFACE
- {
- import ENGINE.DISPLAY.IDisplayObject;
- import ENGINE.INTERFACE.ANIMATORS.*;
-
- public class OTab extends OIObject
- {
-
- public static const iDefAnimators:Array = [{
- "F":OA_Alpha.Make,
- "iSAlpha":0,
- "iEAlpha":1,
- "iPIter":6
- },{
- "F":OA_Alpha.Make,
- "iSAlpha":-1,
- "iEAlpha":0,
- "iPIter":6
- },{
- "F":OA_Alpha.Make,
- "iSAlpha":-1,
- "iEAlpha":1,
- "iPIter":6
- },{
- "F":OA_Alpha.Make,
- "iSAlpha":-1,
- "iEAlpha":0.2,
- "iPIter":6
- },null,null,null,null,null,null];
-
- public static const iDefVAnimator:Object = {
- "F":OA_AlphaFade.Make,
- "iSAlpha":-1,
- "iEAlpha":0,
- "iSInd":[0],
- "iEInd":[1],
- "iPIter":3
- };
-
-
- private var iVAnimator:Object;
-
- private var iCurInd:int;
-
- protected var iWidth:Number;
-
- protected var iHeight:Number;
-
- public function OTab(param1:Array, param2:Number, param3:Number, param4:Object = null, param5:Array = null)
- {
- var _loc6_:Array = null;
- this.iWidth = param2;
- this.iHeight = param3;
- this.iVAnimator = !!param4 ? param4 : iDefVAnimator;
- _loc6_ = !!param5 ? param5 : iDefAnimators;
- super(param1,_loc6_);
- }
-
- override public function get prWidth() : Number
- {
- return this.iWidth;
- }
-
- public function get prElements() : int
- {
- return this.numChildren;
- }
-
- public function set prValue(param1:int) : void
- {
- if(param1 < 0)
- {
- param1 = 0;
- }
- else if(param1 >= this.numChildren)
- {
- param1 = this.numChildren - 1;
- }
- if(Boolean(this.iAEnabled) && Boolean(this.iVAnimator))
- {
- if(this.iCurInd == param1)
- {
- return;
- }
- this.iVAnimator.iSInd = [this.iCurInd];
- this.iVAnimator.iEInd = [param1];
- this.AddAnimator(this.iVAnimator,false);
- }
- else
- {
- if(this.getChildAt(this.iCurInd) is IDisplayObject)
- {
- (this.getChildAt(this.iCurInd) as IDisplayObject).prVisible = false;
- }
- if(this.getChildAt(param1) is IDisplayObject)
- {
- (this.getChildAt(param1) as IDisplayObject).prVisible = true;
- }
- }
- this.iCurInd = param1;
- }
-
- override public function Init() : void
- {
- super.Init();
- (this.getChildAt(0) as IDisplayObject).prVisible = true;
- }
-
- public function get prValue() : int
- {
- return this.iCurInd;
- }
-
- override public function get prHeight() : Number
- {
- return this.iHeight;
- }
-
- public function PosValue(param1:Number, param2:Number) : void
- {
- (this.getChildAt(this.iCurInd) as IDisplayObject).Pos(param1 - this.prX,param2 - this.prY);
- }
- }
- }
-