/flas/src/Fl_SelecteFlagButton.as
https://bitbucket.org/HopeSky/mars_nd2d · ActionScript · 38 lines · 28 code · 6 blank · 4 comment · 1 complexity · 6dc1862c12ed9532c45d284325ef02c9 MD5 · raw file
- package
- {
- public class Fl_SelecteFlagButton extends Fl_Button
- {
- /**
- * 标签
- */
-
- [Inspectable(defaultValue="")]
- override public function set label(str:String):void
- {
- this["txtLabel"].text = str;
- }
- override public function get label():String
- {
- return this["txtLabel"].text;
- }
-
-
- public function Fl_SelecteFlagButton()
- {
- // constructor code
- super();
- this["txtLabel"].text = "";
- }
- override protected function _layout():void
- {
- super._layout();
- if (isLivePreview)
- {
- this["outState"].alpha = 1;
- }
- }
- }
- }