home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Puzzle / Clusterz / Clusterz.swf / scripts / ENGINE / INTERFACE / ELEMENTS / OListBoxElement.as < prev   
Encoding:
Text File  |  2008-09-12  |  2.0 KB  |  86 lines

  1. package ENGINE.INTERFACE.ELEMENTS
  2. {
  3.    import ENGINE.INTERFACE.ANIMATORS.OA_Alpha;
  4.    import ENGINE.INTERFACE.ANIMATORS.OA_AlphaInd;
  5.    import ENGINE.INTERFACE.OButton;
  6.    import ENGINE.INTERFACE.OIObject;
  7.    import flash.events.MouseEvent;
  8.    
  9.    public class OListBoxElement extends OButton
  10.    {
  11.       
  12.       public static const iDefAnimators:Array = [{
  13.          "F":OA_Alpha.Make,
  14.          "iSAlpha":0,
  15.          "iEAlpha":1,
  16.          "iPIter":3
  17.       },{
  18.          "F":OA_Alpha.Make,
  19.          "iSAlpha":-1,
  20.          "iEAlpha":0,
  21.          "iPIter":3
  22.       },{
  23.          "F":OA_Alpha.Make,
  24.          "iSAlpha":-1,
  25.          "iEAlpha":1,
  26.          "iPIter":3
  27.       },{
  28.          "F":OA_Alpha.Make,
  29.          "iSAlpha":-1,
  30.          "iEAlpha":0.2,
  31.          "iPIter":3
  32.       },null,null,{
  33.          "F":OA_AlphaInd.Make,
  34.          "iSAlpha":-1,
  35.          "iEAlpha":0.6,
  36.          "iInd":[1],
  37.          "iPIter":3
  38.       },{
  39.          "F":OA_AlphaInd.Make,
  40.          "iSAlpha":-1,
  41.          "iEAlpha":1,
  42.          "iInd":[1],
  43.          "iPIter":3
  44.       },{
  45.          "F":OA_AlphaInd.Make,
  46.          "iSAlpha":0,
  47.          "iEAlpha":1,
  48.          "iInd":[0],
  49.          "iPIter":9
  50.       },{
  51.          "F":OA_AlphaInd.Make,
  52.          "iSAlpha":-1,
  53.          "iEAlpha":0,
  54.          "iInd":[0],
  55.          "iPIter":9
  56.       }];
  57.        
  58.       
  59.       public function OListBoxElement(param1:Array, param2:Array = null)
  60.       {
  61.          var _loc3_:Array = null;
  62.          _loc3_ = !!param2 ? param2 : iDefAnimators;
  63.          super(param1,_loc3_);
  64.       }
  65.       
  66.       override public function OnMouseUp(param1:MouseEvent) : void
  67.       {
  68.       }
  69.       
  70.       override public function OnRollOut(param1:MouseEvent) : void
  71.       {
  72.          this.prRool = false;
  73.       }
  74.       
  75.       override public function OnMouseDown(param1:MouseEvent) : void
  76.       {
  77.          if(this.prPress && this.parent is OIObject)
  78.          {
  79.             (this.parent as OIObject).OnPress(param1,this);
  80.             return;
  81.          }
  82.          super.OnMouseDown(param1);
  83.       }
  84.    }
  85. }
  86.