我想在这样的 flex 移动应用程序中更改状态时添加转换:
<s:states>
<s:State name="State1"/>
<s:State name="resultsState"/>
</s:states>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<s:Transition fromState="''" toState="resultsState">
<s:Sequence duration="2000">
<s:Fade target="{myTitle}"/>
<s:Move targets="{[cityNameInput,searchBtn]}"/>
<s:AddAction target="{''}"/>
/>
</s:Sequence>
</s:Transition>
</fx:Declarations>
<s:Button id="about_state" includeIn="resultsState" label="About"
click="result_state()" icon="@Embed('assets/About.png')"
/>
// 功能代码是:
private function result_state():void{
currentState = 'resultsState';
}
请帮忙。