I've setup a transition to animate my menu when the user clicks on a menu
item. After the animation I want to call a function to load the next page.
Is there a way to do this? I am using a transition with a sequence going on.
Is there an Sequence Action to call a function?
Code:
<mx:Transition id="menuTopTransition4" fromState="menuTop2"
toState="*">
<mx:Sequence targets="{[menuTabBar, linkBarNav, subMenuBar]}">
<mx:SetPropertyAction target="{linkBarNav}" name="visible"
value="true" />
<mx:Blur target="{subMenuBar}" blurXTo="250" duration="200"
/>
<mx:AddChildAction target="{linkBarNav}"/>
<mx:RemoveChildAction target="{subMenuBar}" />
<mx:Parallel>
<mx:Move target="{linkBarNav}" easingFunction="
Quartic.easeOut" yBy="20"/>
<mx:Dissolve target="{linkBarNav}" alphaFrom="0.8"
alphaTo="1" />
<mx:Move target="{menuTabBar}" xFrom="250" yFrom="38"
yTo="58" easingFunction="Quartic.easeOut"/>
<mx:Dissolve target="{menuTabBar}" alphaFrom="1"
alphaTo="0" duration="100"/>
<mx:RemoveChildAction target="{menuTabBar}" />
</mx:Parallel>
<mx:SetPropertyAction target="{linkBarNav}" name="enabled"
value="true" />
<mx:Blur target="{subMenuBar}" blurXTo="0" duration="0"/>
<!-- RIGHT HERE I want to go to load the new page -->
</mx:Sequence>
</mx:Transition>