チェンジセット 1717

差分発生行の前後
無視リスト:
コミット日時:
2008/10/27 05:24:31 (2 ヶ月前)
コミッタ:
n_mattun
ログメッセージ:

buttonBoxを削除してspecialLabel(ラベル単体コンポーネント)に変更

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • mxp/specialbutton/as3/src/n_mattun/display/SpecialButton.as

    r1653 r1717  
    11package n_mattun.display{ 
    22        // 必要なパッケージの読み込み. 
    3         import fl.managers.FocusManager; 
    43        import flash.geom.*; 
    54        import flash.text.TextField; 
     
    1817        import flash.utils.Timer; 
    1918        import flash.events.TimerEvent; 
     19        import fl.managers.FocusManager; 
    2020        import n_mattun.keyAssist.*; 
    2121         
     22        [IconFile("SpecialButton_icon.png")] 
    2223        public class SpecialButton extends MovieClip { 
    2324                // -------------------------------------------------------------------// 
     
    4344                public var __rightLineEnabled   :Boolean = true; 
    4445                // -------------------------------------------------------------------// 
    45                 //ButtomBox_Labels Property 
     46                //SpecialLabel Property 
    4647                public var __labelType          :String = "テキスト"; 
    47                 public var __textLabel          :String = "sample_spb"; 
     48                public var __textLabel          :String = ""; 
    4849                public var __textURL            :String = ""; 
    4950                public var __imageID            :String = ""; 
     
    7677                public var __w                          :Number = 80; 
    7778                public var __h                          :Number = 20; 
    78                 public var __tmpWidth           :Number = __w; 
    79                 public var __tmpHeight          :Number = __h; 
    8079                public var __labelPosition      :String = "中央"; 
    8180                public var __topMargin          :Number = 2; 
     
    168167                        //this.__downView.handler               = "downHandler"; 
    169168                        //this.__disableView.handler    = "disableHandler"; 
     169                         
    170170                        //ショートカットキーを設定しておく 
    171171                        scDownListener = new ShortCutListener(this,"shortCutDownHandler",__shortCutKey,"down",0,0); 
    172172                        scUpListener   = new ShortCutListener(this,"shortCutUpHandler"  ,__shortCutKey,"up",0,0); 
     173                         
     174                        //ラベル内の外部テキスト/外部画像の読み込み進捗ハンドラを設定 
     175                        label_mc.txtLoadingHandler  = "txtLoadingHandler"; 
     176                        label_mc.txtComplateHandler = "txtComplateHandler"; 
     177                        label_mc.imgLoadingHandler  = "imgLoadingHandler"; 
     178                        label_mc.imgComplateHandler = "imgComplateHandler"; 
    173179                         
    174180                        this.initHandler                = __initHandler; 
     
    199205                // ButtomBox setter 
    200206                // -------------------------------------------------------------------// 
    201                 //[Inspectable(defaultValue=5, name="01.角の丸み", type="Number")] 
     207                [Inspectable(defaultValue=5, name="08.角の丸み", type="Number")] 
    202208                public function set cornerSize(_num:Number):void { 
    203209                        __cornerSize = _num; 
     
    208214                } 
    209215                // -------------------------------------------------------------------// 
    210                 //[Inspectable(defaultValue=2, name="02.線の太さ(下)", type="Number")] 
     216                [Inspectable(defaultValue=2, name="06.線の太さ(下)", type="Number")] 
    211217                public function set outerSize(_num:Number):void { 
    212218                        __outerSize = _num; 
     
    221227                } 
    222228                // -------------------------------------------------------------------// 
    223                 //[Inspectable(defaultValue=1, name="03.線の太さ(上)", type="Number")] 
     229                [Inspectable(defaultValue=1, name="07.線の太さ(上)", type="Number")] 
    224230                public function set innerSize(_num:Number):void { 
    225231                        if(_num <= outerSize){ 
     
    229235                } 
    230236                // -------------------------------------------------------------------// 
    231                 //[Inspectable(defaultValue="All", name="04.角の丸め位置", type="List", enumeration="All,Top,Bottom,Left,Right,LT,LB,RT,RB,None")] 
     237                [Inspectable(defaultValue="All", name="09.角の丸め位置", type="List", enumeration="All,Top,Bottom,Left,Right,LT,LB,RT,RB,None")] 
    232238                public function set cornerPart(_str:String):void { 
    233239                        __cornerPart = _str; 
     
    236242                } 
    237243                // -------------------------------------------------------------------// 
    238                 //[Inspectable(defaultValue="内側", name="05.境界線(上)の位置", type="List", enumeration="内側,中央,外側")] 
     244                [Inspectable(defaultValue="内側", name="10.境界線(上)の位置", type="List", enumeration="内側,中央,外側")] 
    239245                public function set innerPosition(_str:String):void { 
    240246                        __innerPosition = _str; 
     
    242248                } 
    243249                // -------------------------------------------------------------------// 
    244                 //[Inspectable(defaultValue="#000000", name="06.境界線(下)の色", type="Color")] 
    245250                public function set outerColor(_num:uint):void { 
    246251                        __outerColor = _num; 
     
    248253                } 
    249254                // -------------------------------------------------------------------// 
    250                 //[Inspectable(defaultValue="#999999", name="07.境界線(上)の色", type="Color")] 
    251255                public function set innerColor(_num:uint):void { 
    252256                        __innerColor = _num; 
     
    254258                } 
    255259                // -------------------------------------------------------------------// 
    256                 //[Inspectable(defaultValue="#FFFFFF", name="08.塗りの始点色", type="Color")] 
    257260                public function set stColor(_num:uint):void { 
    258261                        __stColor = _num; 
     
    260263                } 
    261264                // -------------------------------------------------------------------// 
    262                 //[Inspectable(defaultValue="#CCCCCC", name="09.塗りの終点色", type="Color")] 
    263265                public function set toColor(_num:uint):void { 
    264266                        __toColor = _num; 
     
    266268                } 
    267269                // -------------------------------------------------------------------// 
    268                 //[Inspectable(defaultValue="グラデ上→下", name="10.塗りのパターン", type="List", enumeration="グラデ内→外,グラデ上→下,グラデ左上→右下,グラデ左下→右上,グラデ左→右,単一色")] 
     270                [Inspectable(defaultValue="グラデ上→下", name="11.塗りのパターン", type="List", enumeration="グラデ内→外,グラデ上→下,グラデ左上→右下,グラデ左下→右上,グラデ左→右,単一色")] 
    269271                public function set colorType(_str:String):void { 
    270272                        __colorType = _str; 
     
    272274                } 
    273275                // -------------------------------------------------------------------// 
    274                 //[Inspectable(defaultValue=100, name="11.境界線(下)の透明度", type="Number")] 
    275276                public function set outerAlpha(_num:Number):void { 
    276277                        __outerAlpha = _num; 
     
    278279                } 
    279280                // -------------------------------------------------------------------// 
    280                 //[Inspectable(defaultValue=100, name="12.境界線(上)の透明度", type="Number")] 
    281281                public function set innerAlpha(_num:Number):void { 
    282282                        __innerAlpha = _num; 
     
    284284                } 
    285285                // -------------------------------------------------------------------// 
    286                 //[Inspectable(defaultValue=100, name="13.塗りの透明度", type="Number")] 
    287286                public function set bodyAlpha(_num:Number):void { 
    288287                        __bodyAlpha  = _num; 
     
    293292                } 
    294293                // -------------------------------------------------------------------// 
    295                 //[Inspectable(defaultValue=100, name="13.塗りの透明度", type="Number")] 
    296294                public function set bgAlpha(_num:Number):void { 
    297295                        __bgAlpha        = _num; 
     
    299297                } 
    300298                // -------------------------------------------------------------------// 
    301                 //[Inspectable(defaultValue=100, name="13.塗りの透明度", type="Number")] 
    302299                public function set labelAlpha(_num:Number):void { 
    303300                        __labelAlpha = _num; 
     
    305302                } 
    306303                // -------------------------------------------------------------------// 
    307                 //[Inspectable(defaultValue=true, name="14.線(上)の表示可否", type="Boolean")] 
    308304                public function set topLineEnabled(_bool:Boolean){ 
    309305                        __topLineEnabled = _bool; 
     
    311307                } 
    312308                // -------------------------------------------------------------------// 
    313                 //[Inspectable(defaultValue=true, name="15.線(下)の表示可否", type="Boolean")] 
    314309                public function set bottomLineEnabled(_bool:Boolean){ 
    315310                        __bottomLineEnabled = _bool; 
     
    317312                } 
    318313                // -------------------------------------------------------------------// 
    319                 //[Inspectable(defaultValue=true, name="16.線(左)の表示可否", type="Boolean")] 
    320314                public function set leftLineEnabled(_bool:Boolean){ 
    321315                        __leftLineEnabled = _bool; 
     
    323317                } 
    324318                // -------------------------------------------------------------------// 
    325                 //[Inspectable(defaultValue=true, name="17.線(右)の表示可否", type="Boolean")] 
    326319                public function set rightLineEnabled(_bool:Boolean){ 
    327320                        __rightLineEnabled = _bool; 
     
    329322                } 
    330323                // -------------------------------------------------------------------// 
    331                 // ButtomBox_Labels setter 
    332                 // -------------------------------------------------------------------// 
     324                [Inspectable(defaultValue="top:true,left:true,right:true,bottom:true", name="16.線の表示可否", type="Object")] 
     325                public function set lineEnabled(_obj:Object){ 
     326                        if("top" in _obj)        topLineEnabled    = _obj.top; 
     327                        if("left" in _obj)       leftLineEnabled   = _obj.left; 
     328                        if("right" in _obj)      rightLineEnabled  = _obj.right; 
     329                        if("bottom" in _obj) bottomLineEnabled = _obj.bottom; 
     330                } 
     331                // -------------------------------------------------------------------// 
     332                // SpecialLabel setter 
     333                // -------------------------------------------------------------------// 
     334                [Inspectable(defaultValue="テキスト", name="01.ラベルの種類", type="List", enumeration="テキスト,外部テキスト,リンケージMC,外部画像,リンケージMC付きテキスト,外部画像付きテキスト,リンケージMC付き外部テキスト,外部画像付き外部テキスト")] 
    333335                public function set labelType(_str:String):void { 
    334336                        __labelType = _str; 
    335                         label_mc.labelType = _str; 
     337                        label_mc.type = _str; 
    336338                        updateLabelPosition(); 
    337339                } 
     
    339341                public function set label(_obj:*):void { 
    340342                        label_mc.label = _obj; 
    341                 } 
    342                 // -------------------------------------------------------------------// 
     343                        updateLabelPosition(); 
     344                } 
     345                // -------------------------------------------------------------------// 
     346                //[Inspectable(defaultValue="", name="09.テキスト", type="String", enumeration="")] 
    343347                public function set textLabel(_str:String):void { 
    344348                        __textLabel = _str; 
    345349                        label_mc.textLabel = _str; 
    346350                        updateLabelPosition(); 
    347                        setAutoSizeFittengSize(); 
    348                 } 
    349                 // -------------------------------------------------------------------// 
     351                } 
     352                // -------------------------------------------------------------------// 
     353                //[Inspectable(defaultValue="", name="10.テキストURL", type="String", enumeration="")] 
    350354                public function set textURL(_str:String):void { 
    351355                        __textURL = _str; 
    352356                        label_mc.textURL = _str; 
    353                        updateLabelPosition(); 
    354                 } 
    355                 // -------------------------------------------------------------------// 
     357                } 
     358                // -------------------------------------------------------------------// 
     359                //[Inspectable(defaultValue="", name="11.画像ID", type="String", enumeration="")] 
    356360                public function set imageID(_str:String):void { 
    357361                        __imageID = _str; 
     
    360364                } 
    361365                // -------------------------------------------------------------------// 
     366                //[Inspectable(defaultValue="", name="12.画像URL", type="String", enumeration="")] 
    362367                public function set imageURL(_str:String):void { 
    363368                        __imageURL = _str; 
    364369                        label_mc.imageURL = _str; 
    365                         updateLabelPosition(); 
     370                } 
     371                // -------------------------------------------------------------------// 
     372                [Inspectable(defaultValue="textLabel:,textURL:,imageID:,imageURL:", name="02.ラベルの値(種類別)", type="Object")] 
     373                public function set labels(_obj:Object){ 
     374                        if("textLabel" in _obj) textLabel = _obj.textLabel; 
     375                        if("textURL"   in _obj) textURL   = _obj.textURL; 
     376                        if("imageID"   in _obj) imageID   = _obj.imageID; 
     377                        if("imageURL"  in _obj) imageURL  = _obj.imageURL; 
    366378                } 
    367379                // -------------------------------------------------------------------// 
     
    380392                        label_mc.size = _num; 
    381393                        updateLabelPosition(); 
    382                         setAutoSizeFittengSize(); 
    383394                } 
    384395                // -------------------------------------------------------------------// 
    385396                public function set textLeading(_num:Number):void { 
     397                        __leading = _num; 
    386398                        label_mc.leading = _num; 
    387399                        updateLabelPosition(); 
    388                         setAutoSizeFittengSize(); 
    389400                } 
    390401                // -------------------------------------------------------------------// 
    391402                public function set textBold(_bool:Boolean):void { 
     403                        __bold = _bool; 
    392404                        label_mc.bold = _bool; 
    393405                        updateLabelPosition(); 
    394                         setAutoSizeFittengSize(); 
    395406                } 
    396407                // -------------------------------------------------------------------// 
    397408                public function set textItalic(_bool:Boolean):void { 
     409                        __italic = _bool; 
    398410                        label_mc.italic = _bool; 
    399                         updateLabelPosition(); 
    400                         setAutoSizeFittengSize(); 
    401411                } 
    402412                // -------------------------------------------------------------------// 
    403413                public function set textUnderline(_bool:Boolean):void { 
     414                        __underline = _bool; 
    404415                        label_mc.underline = _bool; 
     416                } 
     417                // -------------------------------------------------------------------// 
     418                [Inspectable(defaultValue="size:12,leading:2,bold:false,italic:false", name="03.テキストフォーマット", type="Object")] 
     419                public function set textFormat(_obj:Object):void { 
     420                        if("size" in _obj)               textSize      = _obj.size; 
     421                        if("leading" in _obj)    textLeading   = _obj.leading; 
     422                        if("bold" in _obj)               textBold      = _obj.bold; 
     423                        if("italic" in _obj)     textItalic    = _obj.italic; 
    405424                } 
    406425                // -------------------------------------------------------------------// 
     
    408427                        __shadowMargin_x = _num; 
    409428                        shadowMargin = [_num,shadowMargin_y]; 
     429                        updateLabelPosition(); 
    410430                } 
    411431                // -------------------------------------------------------------------// 
     
    413433                        __shadowMargin_y = _num; 
    414434                        shadowMargin = [shadowMargin_x,_num]; 
    415                 } 
    416                 // -------------------------------------------------------------------// 
     435                        updateLabelPosition(); 
     436                } 
     437                // -------------------------------------------------------------------// 
     438                [Inspectable(defaultValue="0,0", name="05.テキスト影の位置", type="Array")] 
    417439                public function set shadowMargin(_nums:Array) { 
    418440                        __shadowMargin = _nums; 
    419441                        label_mc.shadowMargin = _nums; 
    420442                        updateLabelPosition(); 
    421                         setAutoSizeFittengSize(); 
    422                 } 
    423                 // -------------------------------------------------------------------// 
     443                } 
     444                // -------------------------------------------------------------------// 
     445                [Inspectable(defaultValue="underline:false,labelColor:0x000000,shadowColor:0xFFFFFF,outerColor:0x000000,innerColor:0x999999,stColor:0xFFFFFF,toColor:0xCCCCCC,bodyAlpha:1,outerAlpha:1,innerAlpha:1,handler:,sound:", name="12.ボタン通常時の色・透明度", type="Object")] 
     446                public function set upView(_obj:*):void { 
     447                        var i:*; 
     448                        for(i in __upView){if(i in _obj) __upView[i] = _obj[i]}; 
     449                        //現在のviewがoutの場合は見た目を更新 
     450                        if(btnStatus == "out"){ 
     451                                var vMouseEvent = new Object(); 
     452                                vMouseEvent.type=MouseEvent.MOUSE_OUT; 
     453                                updateViewCatcher(vMouseEvent); 
     454                        } 
     455                } 
     456                // -------------------------------------------------------------------// 
     457                [Inspectable(defaultValue="underline:false,labelColor:0x000000,shadowColor:0xFFFFFF,outerColor:0xCC0000,innerColor:0xFF9999,stColor:0xFFFFFF,toColor:0xDDDDDD,bodyAlpha:1,outerAlpha:1,innerAlpha:1,handler:,sound:", name="13.ボタンover時の色・透明度", type="Object")] 
     458                public function set overView(_obj:*):void { 
     459                        var i:*; 
     460                        for(i in __overView){if(i in _obj) __overView[i] = _obj[i]}; 
     461                        //現在のviewがoutの場合は見た目を更新 
     462                        if(btnStatus == "over" || btnStatus == "up"){ 
     463                                var vMouseEvent = new Object(); 
     464                                vMouseEvent.type=MouseEvent.MOUSE_OVER; 
     465                                updateViewCatcher(vMouseEvent); 
     466                        } 
     467                } 
     468                // -------------------------------------------------------------------// 
     469                [Inspectable(defaultValue="underline:false,labelColor:0x333333,shadowColor:0xFFFFFF,outerColor:0x000000,innerColor:0x333333,stColor:0xFFFFFF,toColor:0xCCCCCC,bodyAlpha:1,outerAlpha:1,innerAlpha:1,handler:,sound:", name="14.ボタンdown時の色・透明度", type="Object")] 
     470                public function set downView(_obj:*):void { 
     471                        var i:*; 
     472                        for(i in __downView){if(i in _obj) __downView[i] = _obj[i]}; 
     473                        //現在のviewがoutの場合は見た目を更新 
     474                        if(btnStatus == "down"){ 
     475                                var vMouseEvent = new Object(); 
     476                                vMouseEvent.type=MouseEvent.MOUSE_DOWN; 
     477                                updateViewCatcher(vMouseEvent); 
     478                        } 
     479                } 
     480                // -------------------------------------------------------------------// 
     481                [Inspectable(defaultValue="underline:false,labelColor:0x999999,shadowColor:0xEEEEEE,outerColor:0x999999,innerColor:0x999999,stColor:0x999999,toColor:0x999999,bodyAlpha:0.2,outerAlpha:0.2,innerAlpha:0.2,handler:,sound:", name="15.ボタン押下不可時の色・透明度", type="Object")] 
     482                public function set disableView(_obj:*):void { 
     483                        var i:*; 
     484                        for(i in __disableView){if(i in _obj) __disableView[i] = _obj[i]}; 
     485                        //現在のviewがoutの場合は見た目を更新 
     486                        //trace("btnStatus:",btnStatus); 
     487                        if(btnStatus == "disable"){ 
     488                                var vMouseEvent = new Object(); 
     489                                vMouseEvent.type="disable"; 
     490                                updateViewCatcher(vMouseEvent); 
     491                        } 
     492                } 
     493                // -------------------------------------------------------------------// 
     494                [Inspectable(defaultValue=false, name="17.ボタンの大きさをラベルに合わせる", type="Boolean")] 
    424495                public function set autoSize(_bool:Boolean):void { 
    425496                        __autoSize = _bool; 
    426497                        label_mc.autoSize = _bool; 
    427                         setAutoSizeFittengSize(); 
    428                         if(_bool == false){ 
    429                                 width  = __tmpWidth; 
    430                                 height = __tmpHeight; 
    431                         } 
    432                 } 
    433                 // -------------------------------------------------------------------// 
     498                        if(_bool){ 
     499                                updateLabelPosition(); 
     500                        }else{ 
     501                                width  = __w; 
     502                                height = __h; 
     503                        } 
     504                } 
     505                // -------------------------------------------------------------------// 
     506                [Inspectable(defaultValue="左中", name="18.画像とラベルの相対位置", type="List", enumeration="左上,左中,左下,上左,上中,上右,右上,右中,右下,下左,下中,下右")] 
    434507                public function set imagePosition(_str:String) { 
    435508                        __imagePosition = _str; 
    436509                        label_mc.imagePosition = _str; 
    437510                        updateLabelPosition(); 
    438                         setAutoSizeFittengSize(); 
    439511                } 
    440512                // -------------------------------------------------------------------// 
     
    469541                } 
    470542                // -------------------------------------------------------------------// 
    471                 //[Inspectable(defaultValue="中央", name="14.ラベル位置", type="List", enumeration="中央,上,下,左,右,左上,左下,右上,右下")] 
     543                [Inspectable(defaultValue="中央", name="04.ラベル位置", type="List", enumeration="中央,上,下,左,右,左上,左下,右上,右下")] 
    472544                public function set labelPosition(_str:String):void { 
    473545                        __labelPosition = _str; 
     
    475547                } 
    476548                // -------------------------------------------------------------------// 
    477                 //[Inspectable(defaultValue=2, name="15.ラベルの余白(上)", type="Number")] 
    478549                public function set topMargin(_num:Number):void { 
    479550                        __topMargin = _num; 
    480551                        updateLabelPosition(); 
    481                         setAutoSizeFittengSize(); 
    482                 } 
    483                 // -------------------------------------------------------------------// 
    484                 //[Inspectable(defaultValue=2, name="16.ラベルの余白(下)", type="Number")] 
     552                } 
     553                // -------------------------------------------------------------------// 
    485554                public function set bottomMargin(_num:Number):void { 
    486555                        __bottomMargin = _num; 
    487556                        updateLabelPosition(); 
    488                         setAutoSizeFittengSize(); 
    489                 } 
    490                 // -------------------------------------------------------------------// 
    491                 //[Inspectable(defaultValue=2, name="17.ラベルの余白(左)", type="Number")] 
     557                } 
     558                // -------------------------------------------------------------------// 
    492559                public function set leftMargin(_num:Number):void { 
    493560                        __leftMargin = _num; 
    494561                        updateLabelPosition(); 
    495                         setAutoSizeFittengSize(); 
    496                 } 
    497                 // -------------------------------------------------------------------// 
    498                 //[Inspectable(defaultValue=2, name="18.ラベルの余白(右)", type="Number")] 
     562                } 
     563                // -------------------------------------------------------------------// 
    499564                public function set rightMargin(_num:Number):void { 
    500565                        __rightMargin = _num; 
    501566                        updateLabelPosition(); 
    502                         setAutoSizeFittengSize(); 
    503                 } 
    504                 // -------------------------------------------------------------------// 
    505                 //[Inspectable(defaultValue=2, name="19.ラベルの余白(中)", type="Number")] 
     567                } 
     568                // -------------------------------------------------------------------// 
    506569                public function set centerMargin(_num:Number):void { 
    507570                        __centerMargin = _num; 
    508571                        updateLabelPosition(); 
    509                         setAutoSizeFittengSize(); 
    510                 } 
    511                 // -------------------------------------------------------------------// 
    512                 //[Inspectable(defaultValue="", name="20.データ", type="Array")] 
     572                } 
     573                // -------------------------------------------------------------------// 
     574                [Inspectable(defaultValue="top:2,left:2,right:2,bottom:2,center:2", name="19.ラベルの余白", type="Object")] 
     575                public function set labelMargin(_obj:Object){ 
     576                        if("top" in _obj)        topMargin    = _obj.top; 
     577                        if("left" in _obj)       leftMargin   = _obj.left; 
     578                        if("right" in _obj)      rightMargin  = _obj.right; 
     579                        if("bottom" in _obj) bottomMargin = _obj.bottom; 
     580                        if("center" in _obj) centerMargin = _obj.center; 
     581                } 
     582                // -------------------------------------------------------------------// 
     583                [Inspectable(defaultValue="", name="20.所持データ", type="Array")] 
    513584                public function set data(_params:Array):void { 
    514585                        __data  = new Array(); 
     
    516587                        for(i=0;i < _params.length;i++){ 
    517588                                //セットされたデータは評価して突っ込む 
    518                                 trace("評価前:",_params[i]); 
     589                                //trace("評価前:",_params[i]); 
    519590                                __data[i] = dataStrToPath(_params[i]); 
    520                                 trace("評価後:",__data[i]); 
    521                         } 
    522                 } 
    523                 // -------------------------------------------------------------------// 
    524                 //[Inspectable(defaultValue="ハンドラ起動", name="21.ボタン押下時のアクション", type="String")] 
     591                                //trace("評価後:",__data[i]); 
     592                        } 
     593                } 
     594                // -------------------------------------------------------------------// 
     595                [Inspectable(defaultValue="ハンドラ起動", name="21.ボタン押下時のアクション", type="List", enumeration="ハンドラ起動,指定データにgotoAndPlay,指定データにgotoAndStop,指定データにnavigateToURL,指定データにnavigateToURL(新規ウィンドウ),play,stop,nextFrame,prevFrame,何もしない")] 
    525596                public function set actionType(_str:String):void { 
    526597                        __actionType  = _str; 
    527598                } 
    528599                // -------------------------------------------------------------------// 
    529                 //[Inspectable(defaultValue=true, name="22.ボタン押下可否", type="Boolean")] 
     600                [Inspectable(defaultValue=true, name="29.ボタン押下可否", type="Boolean")] 
    530601                public override function set enabled(_bool:Boolean):void { 
    531602                        __enabled  = _bool; 
     
    577648                } 
    578649                // -------------------------------------------------------------------// 
    579                 //[Inspectable(defaultValue=1, name="23.ボタン押下時のラベルのへこみ度合い", type="Number")] 
     650                [Inspectable(defaultValue=1, name="22.ボタン押下時のラベルのへこみ度合い", type="Number")] 
    580651                public function set pushPixel(_num:Number):void { 
    581652                        __pushPixel = _num; 
    582653                } 
    583654                // -------------------------------------------------------------------// 
    584                 //[Inspectable(defaultValue="{underline:false,labelColor:0x000000,shadowColor:0xFFFFFF,outerColor:0x000000,innerColor:0x999999,stColor:0xFFFFFF,toColor:0xCCCCCC,bodyAlpha:1,outerAlpha:1,innerAlpha:1,handler:,sound:}", name="25.ボタン通常時の色・透明度", type="Object")] 
    585                 public function set upView(_obj:*):void { 
    586                         var i:*; 
    587                         for(i in __upView){if(i in _obj) __upView[i] = _obj[i]}; 
    588                         //現在のviewがoutの場合は見た目を更新 
    589                         if(btnStatus == "out"){ 
    590                                 var vMouseEvent = new Object(); 
    591                                 vMouseEvent.type=MouseEvent.MOUSE_OUT; 
    592                                 updateViewCatcher(vMouseEvent); 
    593                         } 
    594                 } 
    595                 // -------------------------------------------------------------------// 
    596                 //[Inspectable(defaultValue="{underline:false,labelColor:0x000000,shadowColor:0xFFFFFF,outerColor:0xCC0000,innerColor:0xFF9999,stColor:0xFFFFFF,toColor:0xDDDDDD,bodyAlpha:1,outerAlpha:1,innerAlpha:1,handler:,sound:}", name="25.ボタンover時の色・透明度", type="Object")] 
    597                 public function set overView(_obj:*):void { 
    598                         var i:*; 
    599                         for(i in __overView){if(i in _obj) __overView[i] = _obj[i]}; 
    600                         //現在のviewがoutの場合は見た目を更新 
    601                         if(btnStatus == "over" || btnStatus == "up"){ 
    602                                 var vMouseEvent = new Object(); 
    603                                 vMouseEvent.type=MouseEvent.MOUSE_OVER; 
    604                                 updateViewCatcher(vMouseEvent); 
    605                         } 
    606                 } 
    607                 // -------------------------------------------------------------------// 
    608                 //[Inspectable(defaultValue="{underline:false,labelColor:0x333333,shadowColor:0xFFFFFF,outerColor:0x000000,innerColor:0x333333,stColor:0xFFFFFF,toColor:0xCCCCCC,bodyAlpha:1,outerAlpha:1,innerAlpha:1,handler:,sound:}", name="25.ボタンdown時の色・透明度", type="Object")] 
    609                 public function set downView(_obj:*):void { 
    610                         var i:*; 
    611                         for(i in __downView){if(i in _obj) __downView[i] = _obj[i]}; 
    612                         //現在のviewがoutの場合は見た目を更新 
    613                         if(btnStatus == "down"){ 
    614                                 var vMouseEvent = new Object(); 
    615                                 vMouseEvent.type=MouseEvent.MOUSE_DOWN; 
    616                                 updateViewCatcher(vMouseEvent); 
    617                         } 
    618                 } 
    619                 // -------------------------------------------------------------------// 
    620                 //[Inspectable(defaultValue="{underline:false,labelColor:0x999999,shadowColor:0xEEEEEE,outerColor:0x999999,innerColor:0x999999,stColor:0x999999,toColor:0x999999,bodyAlpha:0.2,outerAlpha:0.2,innerAlpha:0.2,handler:,sound:}", name="25.ボタン押下不可時の色・透明度", type="Object")] 
    621                 public function set disableView(_obj:*):void { 
    622                         var i:*; 
    623                         for(i in __disableView){if(i in _obj) __disableView[i] = _obj[i]}; 
    624                         //現在のviewがoutの場合は見た目を更新 
    625                         trace("btnStatus:",btnStatus); 
    626                         if(btnStatus == "disable"){ 
    627                                 var vMouseEvent = new Object(); 
    628                                 vMouseEvent.type="disable"; 
    629                                 updateViewCatcher(vMouseEvent); 
    630                         } 
    631                 } 
    632                 // -------------------------------------------------------------------// 
    633                 //[Inspectable(defaultValue="", name="26.initハンドラ名", type="String")] 
     655                [Inspectable(defaultValue="左上", name="23.サイズ変更時の基準点", type="List", enumeration="中央,上,下,左,右,左上,左下,右上,右下")] 
     656                public function set sizeChangePoint(_str:String):void { 
     657                        __sizeChangePoint = _str; 
     658                } 
     659                // -------------------------------------------------------------------// 
     660                [Inspectable(defaultValue="", name="24.initハンドラ名", type="String")] 
    634661                public function set initHandler(_str:String):void { 
    635662                        __initHandler = _str; 
    636663                } 
    637664                // -------------------------------------------------------------------// 
    638                 //[Inspectable(defaultValue="", name="27.クリックハンドラ名", type="String")] 
     665                [Inspectable(defaultValue="", name="25.クリックハンドラ名", type="String")] 
    639666                public function set clickHandler(_str:String):void { 
    640667                        __clickHandler = _str; 
    641668                } 
    642669                // -------------------------------------------------------------------// 
    643                 //[Inspectable(defaultValue="", name="28.ダブルクリックハンドラ名", type="String")] 
     670                [Inspectable(defaultValue="", name="26.ダブルクリックハンドラ名", type="String")] 
    644671                public function set dbClickHandler(_str:String):void { 
    645672                        __dbClickHandler = _str; 
    646673                } 
    647674                // -------------------------------------------------------------------// 
    648                 //[Inspectable(defaultValue="", name="28.ダブルクリックハンドラ名", type="String")] 
    649                 public function set shortCutKey(_str:String):void { 
    650                         __shortCutKey = _str; 
    651                         scDownListener.shortCutKey = _str; 
    652                         scUpListener.shortCutKey   = _str; 
    653                 } 
    654                 // -------------------------------------------------------------------// 
    655                 //[Inspectable(defaultValue="", name="28.ダブルクリックハンドラ名", type="String")] 
     675                [Inspectable(defaultValue=0, name="27.押下イベントのリピート可否", type="Number")] 
    656676                public function set repeat(_num:uint):void { 
    657677                        __repeat = _num; 
     
    665685                } 
    666686                // -------------------------------------------------------------------// 
    667                 //[Inspectable(defaultValue="", name="28.ダブルクリックハンドラ名", type="String")] 
     687                [Inspectable(defaultValue="", name="31.ショートカットキー", type="String")] 
     688                public function set shortCutKey(_str:String):void { 
     689                        __shortCutKey = _str; 
     690                        scDownListener.shortCutKey = _str; 
     691                        scUpListener.shortCutKey   = _str; 
     692                } 
     693                // -------------------------------------------------------------------// 
     694                [Inspectable(defaultValue=true, name="28.指型カーソル可否", type="Boolean")] 
    668695                public override function set useHandCursor(_bool:Boolean):void { 
    669696                        __useHandCursor = _bool; 
     
    671698                } 
    672699                // -------------------------------------------------------------------// 
    673                 //[Inspectable(defaultValue="", name="28.ダブルクリックハンドラ名", type="String")] 
    674                 public function set sizeChangePoint(_str:String):void { 
    675                         __sizeChangePoint = _str; 
    676                 } 
    677                 // -------------------------------------------------------------------// 
    678                 //[Inspectable(defaultValue="", name="28.ダブルクリックハンドラ名", type="String")] 
     700                [Inspectable(defaultValue="", name="30.ツールチップ文字列", type="String")] 
    679701                public function set toolTip(_str:String):void { 
    680702                        __toolTip = _str; 
     
    776798                } 
    777799                // -------------------------------------------------------------------// 
    778                 // ButtomBox_Labels getter 
     800                // SpecialLabel getter 
    779801                // -------------------------------------------------------------------// 
    780802                public function get labelType():String { 
     
    802824                } 
    803825                // -------------------------------------------------------------------// 
     826                public function get labels():Object{ 
     827                        return { 
     828                                textLabel : __textLabel, 
     829                                textURL   : __textURL, 
     830                                imageID   : __imageID, 
     831                                imageURL  : __imageURL 
     832                        }; 
     833                } 
     834                // -------------------------------------------------------------------// 
    804835                public function get labelColor():uint { 
    805836                        return __labelColor; 
     
    815846                // -------------------------------------------------------------------// 
    816847                public function get textLeading():Number { 
    817                         return label_mc.leading; 
     848                        return __leading; 
    818849                } 
    819850                // -------------------------------------------------------------------// 
    820851                public function get textBold():Boolean { 
    821                         return label_mc.bold; 
     852                        return __bold; 
    822853                } 
    823854                // -------------------------------------------------------------------// 
    824855                public function get textItalic():Boolean { 
    825                         return label_mc.italic; 
     856                        return __italic; 
    826857                } 
    827858                // -------------------------------------------------------------------// 
    828859                public function get textUnderline():Boolean { 
    829                         return label_mc.underline; 
     860                        return __underline; 
     861                } 
     862                // -------------------------------------------------------------------// 
     863                public function get textFormat():Object { 
     864                        return { 
     865                                size     :__textSize, 
     866                                leading  :__leading, 
     867                                bold     :__bold, 
     868                                italic   :__italic 
     869                        }; 
    830870                } 
    831871                // -------------------------------------------------------------------// 
     
    882922                public function get centerMargin():Number { 
    883923                        return __centerMargin; 
     924                } 
     925                // -------------------------------------------------------------------// 
     926                public function get labelMargin():Object{ 
     927                        return { 
     928                                top   :topMargin, 
     929                                left  :leftMargin, 
     930                                right :rightMargin, 
     931                                bottom:bottomMargin, 
     932                                center:centerMargin 
     933                        }; 
    884934                } 
    885935                // -------------------------------------------------------------------/