1.4 Dynamically change the look of an application by using view states,transitions and effects
来源:互联网 发布:js typeof null 编辑:程序博客网 时间:2024/04/29 20:32
1.示例代码如下:
——mx:states是数组,这意味可以包含多个子标签mx:State,即多个状态
——mx:State的name属性相当于id标识,可以为currentState赋值,从而改变视图状态;basedOn属性是该视图状态基于的视图状态,如果该值为 null
,则该视图状态基于根状态(包括不是使用 State 类为组件定义的属性、样式、事件处理函数和子项)
——为了视图之间可以共享组件,mx:State下通过mx:AddChild、mx:RemoveChild、mx:SetProperty、mx:SetEventHandler、mx:SetStyle、mx:Transition来实现添加、删除、设置属性、事件处理、样式、动画
——mx:AddChild将子显示对象(如组件)作为视图状态的一部分添加到容器。relativeTo属性是相对于其添加子项的对象,该属性与position属性结合使用.如果省略此属性,Flex 将使用 State
对象的直接父级,即具有 states
属性的组件,或指定 State 对象的 <mx:states>
标签;position显示列表中子项的位置,随 relativeTo 属性指定的对象而变化;creationPolicy属性指该子级的创建策略
——mx:RemoveChild属性将子显示对象(如组件)作为视图状态的一部分从容器中删除。子项只是从显示列表中移除,但未被删除
——mx:SetProperty指定只在父视图状态期间有效的属性值
——mx:SetStyle指定只在父视图状态期间有效的样式
——mx:Transition类定义了一组在响应视图状态更改时播放的效果。默认情况下,fromState
和 toState
属性均设置为“*”,表示将过渡应用到视图状态的任何更改。可以使用 effect
属性来指定应用过渡时要播放的 Effect 对象。通常,它是一个包含多个效果的复合效果对象(如 Parallel 或 Sequence 效果)
- 1.4 Dynamically change the look of an application by using view states,transitions and effects
- A List itemRenderer using States and Transitions
- How to change the name of logfile dynamically using log4j
- An Application Program Dynamically Loading and Linking the Shared Library
- Animating Views Using Scenes and Transitions - The Transitions Framework
- ios程序运行的几种状态 Application States and Transitions
- transitions & states
- Dynamically size the height of the table view cells
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- How to Change the DBID and the DBNAME by using NID
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- it can change the look of your room
- How to programmatically change the default view of an InfoPath form
- states of the thread
- Application Design: Dynamically change state and city drop-down boxes with DHTML
- How to provide an alternative view of data by using a splitter window
- Android如何播放gif图片
- 用Response.Redirect如何跳出框架
- 自动生成编号
- Qt 编码问题QTextCodec
- 招人啦~~~~~
- 1.4 Dynamically change the look of an application by using view states,transitions and effects
- 某些不能被应用使用的权限
- linux学习资料,更新ing
- Siebel SQL log
- Oracle11新特性——支持对物化视图日志的在线重定义
- C++ - _T含义 C++语言中“_T”是什么意思
- Tegaki安装指南
- ArcGIS Viewer for Flex(Widget部件标签)
- jquery学习入门到高级(转载博客园)