Hi, i am trying to change a Panel's hide and show effect via a state.
The following does not work:
<mx:states>
<mx:State name="LeftToRight">
<mx:SetEventHandler target="{actionsPanelLarge}" name="hideEffect"
handler="mainStackWR"/>
<mx:SetEventHandler target="{actionsPanelLarge}" name="showEffect"
handler="mainStackWR"/>
</mx:State>
<mx:State name="RightToLeft">
<mx:SetEventHandler target="{userCurrentLookLargePanel}"
name="hideEffect" handler="{mainStackWL}"/>
<mx:SetEventHandler target="{userCurrentLookLargePanel}"
name="showEffect" handler="{mainStackWL}"/>
</mx:State>
</mx:states>
As you can see i tried both handler="mainStackWR" and
handler="{mainStackWR}"
mainStackWR is the following:
<mx:WipeRight id="mainStackWR" duration="500"/>
What am i doing wrong? Sorry but its my first try with state
management, and i cannot seem to find any info on this...Property
changing works fine, but here??
TIA,
Fotis