您的位置:首页 > Web前端

Starling Feathers Controls Button

2014-09-11 14:24 309 查看
说明:

按钮

用法:

private var _button:Button;
private function testButton():void{
_button = new Button();
_button.label = "按钮";
_button.addEventListener(Event.TRIGGERED, buttonTriggeredHandler);
this.addChild(_button);
_button.validate();
_button.x = (this.stage.stageWidth - _button.width) / 2;
_button.y = (this.stage.stageHeight - _button.height) / 2;
}
private function buttonTriggeredHandler(e:Event):void
{
const label:Label = new Label();
label.text = "你好,刚刚点击了按钮。";
Callout.show(label, _button);
}

效果:





更多说明参考:
http://wiki.starling-framework.org/feathers/button
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息