首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

flex states的简略用法

2012-09-06 
flex states的简单用法?1.状态可以用来页面间的转换s:statess:State nameindex/s:State namecha

flex states的简单用法

?1.状态可以用来页面间的转换

<s:states>     <s:State name="index"/>     <s:State name="chatRoom"/></s:states>

?

<s:BorderContainer width="60%" height="60%" borderVisible="true" x="259" y="151"><s:backgroundFill><s:SolidColor  color="0xffffff" alpha="0"/></s:backgroundFill><component:ChatRoom includeIn="chatRoom"></component:ChatRoom></s:BorderContainer>

?chatRoom是一个自定义组件,includeIn表示该组件只在chatRoom状态下显示,其中还有一个excludeFrom属性表示该组件不在这个属性指定的状态下显示

热点排行