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
按钮
用法:
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
相关文章推荐
- Starling Feathers Controls Button
- Starling Feathers Controls List
- Starling Feathers Controls Radio
- Starling Feathers Controls List
- Starling Feathers Controls Screen
- Starling Feathers Controls NumericStepper
- Starling Feathers Controls Screen
- Starling Feathers Controls NumericStepper
- Starling Feathers Controls ScreenNavigator
- Starling Feathers Controls GroupedList
- Starling Feathers Controls ScreenNavigator
- Starling Feathers Controls GroupedList
- Starling Feathers Controls PageIndicator
- Starling Feathers Controls PageIndicator
- Starling Feathers Controls Header
- Starling Feathers Controls Panel
- Starling Feathers Controls Alert
- Starling Feathers Controls Header
- Starling Feathers Controls Panel
- Starling Feathers Controls Alert