Starling Feathers Controls Screen

本文介绍了 Feathers UI 框架中 Screen 组件的基本用法。Screen 组件作为 TheScreenNavigator 的显示屏幕,推荐使用 Screenclass 作为基类创建新屏幕。文章通过示例代码展示了如何创建自定义屏幕,并提供了 initialize 和 draw 方法的使用说明。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

说明:
The ScreenNavigator component can display any Feathers control as a screen. However, using the Screen class as your base class for a new screen is recommended because it provides a number of convenient properties.

示例:
package
			{
				import feathers.controls.Screen;
				
				public class CustomScreen extends Screen
				{
					public function CustomScreen()
					{
					}
					
					override protected function initialize():void
					{
						//runs once when screen is first added to the stage.
						//a good place to add children and set a layout.
					}
					
					override protected function draw():void
					{
						//override only if you want to do manual measurement and layout.
					}
				}
			}


效果:
无。

更多说明参考:

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值