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属性表示该组件不在这个属性指定的状态下显示