天天看點

Starling Feathers Controls Check

說明:

複選按鈕。

示例:

private function testCheck():void{
<span style="white-space:pre">			</span>var check:Check = new Check();
<span style="white-space:pre">			</span>check.x=100;
<span style="white-space:pre">			</span>check.y=100;
<span style="white-space:pre">			</span>check.label = "Pick Me!";
<span style="white-space:pre">			</span>check.isSelected = true;
<span style="white-space:pre">			</span>check.addEventListener( Event.CHANGE, check_changeHandler );
<span style="white-space:pre">			</span>this.addChild( check );
<span style="white-space:pre">		</span>}
<span style="white-space:pre">		</span>private function check_changeHandler(e:Event):void
<span style="white-space:pre">		</span>{
<span style="white-space:pre">			</span>var check:Check=e.currentTarget as Check;
<span style="white-space:pre">			</span>trace(check.isSelected);
<span style="white-space:pre">		</span>}           

效果:

Starling Feathers Controls Check

更多說明參考:

http://wiki.starling-framework.org/feathers/check