【问题标题】:How to use portrait / landscape states in Flex 4.5 skin files如何在 Flex 4.5 皮肤文件中使用纵向/横向状态
【发布时间】:2011-11-22 23:11:00
【问题描述】:

在 Flex 4.5 for mobile 中,我如何使用皮肤文件中的纵向/横向状态?

例如在皮肤文件中我要创建以下状态

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

并以正常方式使用它们。但是,当我在横向和纵向之间切换时,皮肤文件中的当前状态不会更新。

【问题讨论】:

    标签: apache-flex adobe flash-builder flash-cs5 flex-mobile


    【解决方案1】:

    可以绑定到宿主组件的当前状态:

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

    另请参阅此示例:

    http://saturnboy.com/2009/09/flex4-component-states-skin-states/
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多