PageRenderTime 31ms CodeModel.GetById 23ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1package 
 2{
 3
 4	public class Fl_SelecteFlagButton extends Fl_Button
 5	{
 6
 7		/**
 8		 * 标签
 9		 */
10		
11		[Inspectable(defaultValue="")]
12		override public function set label(str:String):void
13		{
14			this["txtLabel"].text = str;
15		}
16		override public function get label():String
17		{
18			return this["txtLabel"].text;
19		}
20		
21		
22		public function Fl_SelecteFlagButton()
23		{
24			// constructor code
25			super();
26			this["txtLabel"].text = "";
27		}
28		override protected function _layout():void 
29		{
30			super._layout();
31			if (isLivePreview)
32			{
33				this["outState"].alpha = 1;
34			} 
35		}
36	}
37
38}