OK、誰かがFlex4のmxmlで状態を実行するための実際の構文を教えてもらえますか?
私は次の両方を見てきました(そして両方を実装しました)が、どちらの方法が「正しい」か、または好ましいかわかりません。
の中に<fx:Declarations>
<fx:Declarations>
...
<s:State name="state1" />
<s:State name="state2" />
<s:State name="state3" />
</fx:Declarations>
<s:Button id="button1" ... />
...
<more components>
また
コンポーネントの「最上位」レベル
<s:states>
<s:State name="state1" />
<s:State name="state2" />
<s:State name="state3" />
</s:states>
<s:Button id="button1" ... />
...
<more components>