feathers组件记录
来源:互联网 发布:美工钢笔价格 编辑:程序博客网 时间:2024/05/06 03:44
1.popups包下有三个类一个接口,对来实现弹出层
2.CalloutPopUpContentManager 比较简单,open方法里直接使用Callout.show(content, source)进行弹出
3.Callout控件功能类似于tip。它能弹出一个带箭头的指向指定displayobject的tip,并且你可以设置它的指向方向。好像会自动在舞台能显示的范围内调整位置.callout.show方法其实也是调用PopUpManager.addPopUp()来弹出提示的
4.PopUpManager在feathers.core包下。这个包里其实是具体控件的接口和管理类
5.PopUpManager.addPopUp方法不需设置弹出的显示对象的parent,因为它直接stage.addChild到顶层
6.VerticalCenteredPopUpContentManager用于居中弹出,它的open(content:DisplayObject, source:DisplayObject):void方法中的source没有被用到。就是说弹出的层的parent直接是stage
7.app.xml中的<aspectRatio>landscape</aspectRatio>是让应用横向
8.DropDownPopUpContentManager是在指定的displayobject的上方或下方弹出一个层。它会根据displayobject的Y坐标来决定是在上还是在下。和Callout类似。但它没没箭头
9.PickerList相当于一下拉选择控件。它包含了一个button和一个List,点击按钮,popup弹出list让你选择。至于用哪种popup方式,是由当前的主题设置的
10.9.PickerList的labelField用于设置button的文本值用的是dataProvider item的哪个键
11.9.PickerList.listProperties.@itemRendererProperties.labelField = "text";用于设置list中item的文本值用的是dataProvider item的哪个键
12.自定义list的itemrender要新建 一个类,继承自DefaultListItemRenderer然后this._list.itemRendererType = TestItemRender;
13.需要在Main(Game)里new 一个主题进行初始化,这是必须的,主题里会设置list的DefaultListItemRenderer
14.FeathersControl.validate会触发重绘draw
15. _btn.upSkin =new Image( upTexture );正常状态
_btn.hoverSkin = new Image( downTexture );鼠标经过
_btn.downSkin = new Image( upTexture );鼠标按下
- feathers组件记录
- Feathers组件--之--列表
- Feathers组件--之--按钮
- Feathers组件--之--窗口
- Feathers组件--之--列表
- Feathers组件--之--嵌入位图字体
- Feathers组件--之--列表面板中的按钮
- Feathers组件--之--高亮按钮
- Feathers组件-锦囊妙计--在List用文字滤镜
- Feathers基于Starling的组件学习笔记(二)
- Feathers基于Starling的组件研究笔记(三)
- feathers备忘录
- Feathers之嵌入图形
- feathers ui hello world
- Starling Feathers Controls Alert
- Starling Feathers Controls Button
- Starling Feathers Controls ButtonGroup
- Starling Feathers Controls Callout
- STL源码剖析——散列表hashtable
- XAMPP在Linux中安装
- CalTech machine learning video 8 note(Bias-Variance Tradeoff)
- linux: 几个常用makefile模板
- Android L下用XXRadius设置圆角背景图片不能显示
- feathers组件记录
- 使用Jsoup消除不受信任的HTML (来防止XSS攻击)
- U-boot-2014.04编译过程
- Delphi 修改TreeView的节点高度
- IO中同步、异步与阻塞、非阻塞的区别
- Java多线程中join方法的理解
- 在苹果开发者账号添加UDID
- C语言文件复制
- html的div设计