2011-11-22 35 views
0

在Flex 4.5移動版中,如何使用皮膚文件中的縱向/橫向狀態?如何在Flex 4.5皮膚文件中使用縱向/橫向狀態

例如在皮膚文件中,我想創建以下狀態

<s:states> 
    <s:State name="portrait" /> 
    <s:State name="landscape" /> 
</s:states> 

並以正常方式使用它們。但是,當我在橫向和縱向之間切換時,皮膚文件中的當前狀態不會更新。

回答

0

這是可能的結合的主機組件的當前狀態:

<fx:Binding source="hostComponent.currentState" destination="this.currentState"/> 

也可參見本中的示例:

http://saturnboy.com/2009/09/flex4-component-states-skin-states/ 
相關問題