チェンジセット 1717
- コミット日時:
- 2008/10/27 05:24:31 (2 ヶ月前)
- ファイル:
-
- mxp/specialbutton/as3/src/n_mattun/display/ImageLoader.as (追加)
- mxp/specialbutton/as3/src/n_mattun/display/SpecialButton.as (更新) (61 diffs)
- mxp/specialbutton/as3/src/n_mattun/display/SpecialLabel.as (追加)
- mxp/specialbutton/as3/src/n_mattun/display/TextLabel.as (追加)
- mxp/specialbutton/as3/src/n_mattun/display/TextLabels.as (追加)
- mxp/specialbutton/as3/src/n_mattun/display/buttonBox_Labels.as (削除)
- mxp/specialbutton/as3/src/n_mattun/display/buttonBox_textLabels.as (削除)
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
mxp/specialbutton/as3/src/n_mattun/display/SpecialButton.as
r1653 r1717 1 1 package n_mattun.display{ 2 2 // 必要なパッケージの読み込み. 3 import fl.managers.FocusManager;4 3 import flash.geom.*; 5 4 import flash.text.TextField; … … 18 17 import flash.utils.Timer; 19 18 import flash.events.TimerEvent; 19 import fl.managers.FocusManager; 20 20 import n_mattun.keyAssist.*; 21 21 22 [IconFile("SpecialButton_icon.png")] 22 23 public class SpecialButton extends MovieClip { 23 24 // -------------------------------------------------------------------// … … 43 44 public var __rightLineEnabled :Boolean = true; 44 45 // -------------------------------------------------------------------// 45 // ButtomBox_LabelsProperty46 //SpecialLabel Property 46 47 public var __labelType :String = "テキスト"; 47 public var __textLabel :String = " sample_spb";48 public var __textLabel :String = ""; 48 49 public var __textURL :String = ""; 49 50 public var __imageID :String = ""; … … 76 77 public var __w :Number = 80; 77 78 public var __h :Number = 20; 78 public var __tmpWidth :Number = __w;79 public var __tmpHeight :Number = __h;80 79 public var __labelPosition :String = "中央"; 81 80 public var __topMargin :Number = 2; … … 168 167 //this.__downView.handler = "downHandler"; 169 168 //this.__disableView.handler = "disableHandler"; 169 170 170 //ショートカットキーを設定しておく 171 171 scDownListener = new ShortCutListener(this,"shortCutDownHandler",__shortCutKey,"down",0,0); 172 172 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"; 173 179 174 180 this.initHandler = __initHandler; … … 199 205 // ButtomBox setter 200 206 // -------------------------------------------------------------------// 201 //[Inspectable(defaultValue=5, name="01.角の丸み", type="Number")]207 [Inspectable(defaultValue=5, name="08.角の丸み", type="Number")] 202 208 public function set cornerSize(_num:Number):void { 203 209 __cornerSize = _num; … … 208 214 } 209 215 // -------------------------------------------------------------------// 210 //[Inspectable(defaultValue=2, name="02.線の太さ(下)", type="Number")]216 [Inspectable(defaultValue=2, name="06.線の太さ(下)", type="Number")] 211 217 public function set outerSize(_num:Number):void { 212 218 __outerSize = _num; … … 221 227 } 222 228 // -------------------------------------------------------------------// 223 //[Inspectable(defaultValue=1, name="03.線の太さ(上)", type="Number")]229 [Inspectable(defaultValue=1, name="07.線の太さ(上)", type="Number")] 224 230 public function set innerSize(_num:Number):void { 225 231 if(_num <= outerSize){ … … 229 235 } 230 236 // -------------------------------------------------------------------// 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")] 232 238 public function set cornerPart(_str:String):void { 233 239 __cornerPart = _str; … … 236 242 } 237 243 // -------------------------------------------------------------------// 238 //[Inspectable(defaultValue="内側", name="05.境界線(上)の位置", type="List", enumeration="内側,中央,外側")]244 [Inspectable(defaultValue="内側", name="10.境界線(上)の位置", type="List", enumeration="内側,中央,外側")] 239 245 public function set innerPosition(_str:String):void { 240 246 __innerPosition = _str; … … 242 248 } 243 249 // -------------------------------------------------------------------// 244 //[Inspectable(defaultValue="#000000", name="06.境界線(下)の色", type="Color")]245 250 public function set outerColor(_num:uint):void { 246 251 __outerColor = _num; … … 248 253 } 249 254 // -------------------------------------------------------------------// 250 //[Inspectable(defaultValue="#999999", name="07.境界線(上)の色", type="Color")]251 255 public function set innerColor(_num:uint):void { 252 256 __innerColor = _num; … … 254 258 } 255 259 // -------------------------------------------------------------------// 256 //[Inspectable(defaultValue="#FFFFFF", name="08.塗りの始点色", type="Color")]257 260 public function set stColor(_num:uint):void { 258 261 __stColor = _num; … … 260 263 } 261 264 // -------------------------------------------------------------------// 262 //[Inspectable(defaultValue="#CCCCCC", name="09.塗りの終点色", type="Color")]263 265 public function set toColor(_num:uint):void { 264 266 __toColor = _num; … … 266 268 } 267 269 // -------------------------------------------------------------------// 268 //[Inspectable(defaultValue="グラデ上→下", name="10.塗りのパターン", type="List", enumeration="グラデ内→外,グラデ上→下,グラデ左上→右下,グラデ左下→右上,グラデ左→右,単一色")]270 [Inspectable(defaultValue="グラデ上→下", name="11.塗りのパターン", type="List", enumeration="グラデ内→外,グラデ上→下,グラデ左上→右下,グラデ左下→右上,グラデ左→右,単一色")] 269 271 public function set colorType(_str:String):void { 270 272 __colorType = _str; … … 272 274 } 273 275 // -------------------------------------------------------------------// 274 //[Inspectable(defaultValue=100, name="11.境界線(下)の透明度", type="Number")]275 276 public function set outerAlpha(_num:Number):void { 276 277 __outerAlpha = _num; … … 278 279 } 279 280 // -------------------------------------------------------------------// 280 //[Inspectable(defaultValue=100, name="12.境界線(上)の透明度", type="Number")]281 281 public function set innerAlpha(_num:Number):void { 282 282 __innerAlpha = _num; … … 284 284 } 285 285 // -------------------------------------------------------------------// 286 //[Inspectable(defaultValue=100, name="13.塗りの透明度", type="Number")]287 286 public function set bodyAlpha(_num:Number):void { 288 287 __bodyAlpha = _num; … … 293 292 } 294 293 // -------------------------------------------------------------------// 295 //[Inspectable(defaultValue=100, name="13.塗りの透明度", type="Number")]296 294 public function set bgAlpha(_num:Number):void { 297 295 __bgAlpha = _num; … … 299 297 } 300 298 // -------------------------------------------------------------------// 301 //[Inspectable(defaultValue=100, name="13.塗りの透明度", type="Number")]302 299 public function set labelAlpha(_num:Number):void { 303 300 __labelAlpha = _num; … … 305 302 } 306 303 // -------------------------------------------------------------------// 307 //[Inspectable(defaultValue=true, name="14.線(上)の表示可否", type="Boolean")]308 304 public function set topLineEnabled(_bool:Boolean){ 309 305 __topLineEnabled = _bool; … … 311 307 } 312 308 // -------------------------------------------------------------------// 313 //[Inspectable(defaultValue=true, name="15.線(下)の表示可否", type="Boolean")]314 309 public function set bottomLineEnabled(_bool:Boolean){ 315 310 __bottomLineEnabled = _bool; … … 317 312 } 318 313 // -------------------------------------------------------------------// 319 //[Inspectable(defaultValue=true, name="16.線(左)の表示可否", type="Boolean")]320 314 public function set leftLineEnabled(_bool:Boolean){ 321 315 __leftLineEnabled = _bool; … … 323 317 } 324 318 // -------------------------------------------------------------------// 325 //[Inspectable(defaultValue=true, name="17.線(右)の表示可否", type="Boolean")]326 319 public function set rightLineEnabled(_bool:Boolean){ 327 320 __rightLineEnabled = _bool; … … 329 322 } 330 323 // -------------------------------------------------------------------// 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付き外部テキスト,外部画像付き外部テキスト")] 333 335 public function set labelType(_str:String):void { 334 336 __labelType = _str; 335 label_mc. labelType = _str;337 label_mc.type = _str; 336 338 updateLabelPosition(); 337 339 } … … 339 341 public function set label(_obj:*):void { 340 342 label_mc.label = _obj; 341 } 342 // -------------------------------------------------------------------// 343 updateLabelPosition(); 344 } 345 // -------------------------------------------------------------------// 346 //[Inspectable(defaultValue="", name="09.テキスト", type="String", enumeration="")] 343 347 public function set textLabel(_str:String):void { 344 348 __textLabel = _str; 345 349 label_mc.textLabel = _str; 346 350 updateLabelPosition(); 347 setAutoSizeFittengSize();348 }349 // -------------------------------------------------------------------//351 } 352 // -------------------------------------------------------------------// 353 //[Inspectable(defaultValue="", name="10.テキストURL", type="String", enumeration="")] 350 354 public function set textURL(_str:String):void { 351 355 __textURL = _str; 352 356 label_mc.textURL = _str; 353 updateLabelPosition();354 }355 // -------------------------------------------------------------------//357 } 358 // -------------------------------------------------------------------// 359 //[Inspectable(defaultValue="", name="11.画像ID", type="String", enumeration="")] 356 360 public function set imageID(_str:String):void { 357 361 __imageID = _str; … … 360 364 } 361 365 // -------------------------------------------------------------------// 366 //[Inspectable(defaultValue="", name="12.画像URL", type="String", enumeration="")] 362 367 public function set imageURL(_str:String):void { 363 368 __imageURL = _str; 364 369 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; 366 378 } 367 379 // -------------------------------------------------------------------// … … 380 392 label_mc.size = _num; 381 393 updateLabelPosition(); 382 setAutoSizeFittengSize();383 394 } 384 395 // -------------------------------------------------------------------// 385 396 public function set textLeading(_num:Number):void { 397 __leading = _num; 386 398 label_mc.leading = _num; 387 399 updateLabelPosition(); 388 setAutoSizeFittengSize();389 400 } 390 401 // -------------------------------------------------------------------// 391 402 public function set textBold(_bool:Boolean):void { 403 __bold = _bool; 392 404 label_mc.bold = _bool; 393 405 updateLabelPosition(); 394 setAutoSizeFittengSize();395 406 } 396 407 // -------------------------------------------------------------------// 397 408 public function set textItalic(_bool:Boolean):void { 409 __italic = _bool; 398 410 label_mc.italic = _bool; 399 updateLabelPosition();400 setAutoSizeFittengSize();401 411 } 402 412 // -------------------------------------------------------------------// 403 413 public function set textUnderline(_bool:Boolean):void { 414 __underline = _bool; 404 415 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; 405 424 } 406 425 // -------------------------------------------------------------------// … … 408 427 __shadowMargin_x = _num; 409 428 shadowMargin = [_num,shadowMargin_y]; 429 updateLabelPosition(); 410 430 } 411 431 // -------------------------------------------------------------------// … … 413 433 __shadowMargin_y = _num; 414 434 shadowMargin = [shadowMargin_x,_num]; 415 } 416 // -------------------------------------------------------------------// 435 updateLabelPosition(); 436 } 437 // -------------------------------------------------------------------// 438 [Inspectable(defaultValue="0,0", name="05.テキスト影の位置", type="Array")] 417 439 public function set shadowMargin(_nums:Array) { 418 440 __shadowMargin = _nums; 419 441 label_mc.shadowMargin = _nums; 420 442 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")] 424 495 public function set autoSize(_bool:Boolean):void { 425 496 __autoSize = _bool; 426 497 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="左上,左中,左下,上左,上中,上右,右上,右中,右下,下左,下中,下右")] 434 507 public function set imagePosition(_str:String) { 435 508 __imagePosition = _str; 436 509 label_mc.imagePosition = _str; 437 510 updateLabelPosition(); 438 setAutoSizeFittengSize();439 511 } 440 512 // -------------------------------------------------------------------// … … 469 541 } 470 542 // -------------------------------------------------------------------// 471 //[Inspectable(defaultValue="中央", name="14.ラベル位置", type="List", enumeration="中央,上,下,左,右,左上,左下,右上,右下")]543 [Inspectable(defaultValue="中央", name="04.ラベル位置", type="List", enumeration="中央,上,下,左,右,左上,左下,右上,右下")] 472 544 public function set labelPosition(_str:String):void { 473 545 __labelPosition = _str; … … 475 547 } 476 548 // -------------------------------------------------------------------// 477 //[Inspectable(defaultValue=2, name="15.ラベルの余白(上)", type="Number")]478 549 public function set topMargin(_num:Number):void { 479 550 __topMargin = _num; 480 551 updateLabelPosition(); 481 setAutoSizeFittengSize(); 482 } 483 // -------------------------------------------------------------------// 484 //[Inspectable(defaultValue=2, name="16.ラベルの余白(下)", type="Number")] 552 } 553 // -------------------------------------------------------------------// 485 554 public function set bottomMargin(_num:Number):void { 486 555 __bottomMargin = _num; 487 556 updateLabelPosition(); 488 setAutoSizeFittengSize(); 489 } 490 // -------------------------------------------------------------------// 491 //[Inspectable(defaultValue=2, name="17.ラベルの余白(左)", type="Number")] 557 } 558 // -------------------------------------------------------------------// 492 559 public function set leftMargin(_num:Number):void { 493 560 __leftMargin = _num; 494 561 updateLabelPosition(); 495 setAutoSizeFittengSize(); 496 } 497 // -------------------------------------------------------------------// 498 //[Inspectable(defaultValue=2, name="18.ラベルの余白(右)", type="Number")] 562 } 563 // -------------------------------------------------------------------// 499 564 public function set rightMargin(_num:Number):void { 500 565 __rightMargin = _num; 501 566 updateLabelPosition(); 502 setAutoSizeFittengSize(); 503 } 504 // -------------------------------------------------------------------// 505 //[Inspectable(defaultValue=2, name="19.ラベルの余白(中)", type="Number")] 567 } 568 // -------------------------------------------------------------------// 506 569 public function set centerMargin(_num:Number):void { 507 570 __centerMargin = _num; 508 571 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")] 513 584 public function set data(_params:Array):void { 514 585 __data = new Array(); … … 516 587 for(i=0;i < _params.length;i++){ 517 588 //セットされたデータは評価して突っ込む 518 trace("評価前:",_params[i]);589 //trace("評価前:",_params[i]); 519 590 __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,何もしない")] 525 596 public function set actionType(_str:String):void { 526 597 __actionType = _str; 527 598 } 528 599 // -------------------------------------------------------------------// 529 //[Inspectable(defaultValue=true, name="22.ボタン押下可否", type="Boolean")]600 [Inspectable(defaultValue=true, name="29.ボタン押下可否", type="Boolean")] 530 601 public override function set enabled(_bool:Boolean):void { 531 602 __enabled = _bool; … … 577 648 } 578 649 // -------------------------------------------------------------------// 579 //[Inspectable(defaultValue=1, name="23.ボタン押下時のラベルのへこみ度合い", type="Number")]650 [Inspectable(defaultValue=1, name="22.ボタン押下時のラベルのへこみ度合い", type="Number")] 580 651 public function set pushPixel(_num:Number):void { 581 652 __pushPixel = _num; 582 653 } 583 654 // -------------------------------------------------------------------// 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")] 634 661 public function set initHandler(_str:String):void { 635 662 __initHandler = _str; 636 663 } 637 664 // -------------------------------------------------------------------// 638 //[Inspectable(defaultValue="", name="27.クリックハンドラ名", type="String")]665 [Inspectable(defaultValue="", name="25.クリックハンドラ名", type="String")] 639 666 public function set clickHandler(_str:String):void { 640 667 __clickHandler = _str; 641 668 } 642 669 // -------------------------------------------------------------------// 643 //[Inspectable(defaultValue="", name="28.ダブルクリックハンドラ名", type="String")]670 [Inspectable(defaultValue="", name="26.ダブルクリックハンドラ名", type="String")] 644 671 public function set dbClickHandler(_str:String):void { 645 672 __dbClickHandler = _str; 646 673 } 647 674 // -------------------------------------------------------------------// 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")] 656 676 public function set repeat(_num:uint):void { 657 677 __repeat = _num; … … 665 685 } 666 686 // -------------------------------------------------------------------// 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")] 668 695 public override function set useHandCursor(_bool:Boolean):void { 669 696 __useHandCursor = _bool; … … 671 698 } 672 699 // -------------------------------------------------------------------// 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")] 679 701 public function set toolTip(_str:String):void { 680 702 __toolTip = _str; … … 776 798 } 777 799 // -------------------------------------------------------------------// 778 // ButtomBox_Labelsgetter800 // SpecialLabel getter 779 801 // -------------------------------------------------------------------// 780 802 public function get labelType():String { … … 802 824 } 803 825 // -------------------------------------------------------------------// 826 public function get labels():Object{ 827 return { 828 textLabel : __textLabel, 829 textURL : __textURL, 830 imageID : __imageID, 831 imageURL : __imageURL 832 }; 833 } 834 // -------------------------------------------------------------------// 804 835 public function get labelColor():uint { 805 836 return __labelColor; … … 815 846 // -------------------------------------------------------------------// 816 847 public function get textLeading():Number { 817 return label_mc.leading;848 return __leading; 818 849 } 819 850 // -------------------------------------------------------------------// 820 851 public function get textBold():Boolean { 821 return label_mc.bold;852 return __bold; 822 853 } 823 854 // -------------------------------------------------------------------// 824 855 public function get textItalic():Boolean { 825 return label_mc.italic;856 return __italic; 826 857 } 827 858 // -------------------------------------------------------------------// 828 859 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 }; 830 870 } 831 871 // -------------------------------------------------------------------// … … 882 922 public function get centerMargin():Number { 883 923 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 }; 884 934 } 885 935 // -------------------------------------------------------------------/