PDA

View Full Version : very easy Flex Effect question, please help


cheesecake
05-21-2008, 04:14 AM
I'm trying to achieve the glow effect on a Tab Navigator, but I want to fire off two of them instead of just one. Is there syntax to handle 2 effects on a creationcomplete?

<mx:TabNavigator id="myTabNav" onCreationCompleteEffect="{glow1}"/>

how can I execute glow1 and glow2?

thanks in advance

bfrancis
05-22-2008, 07:35 PM
Hi
You need to wrap them in a parallel tag to run them together or a sequence tag to do them one after the other:

<mx:Sequence id="glow" target="myTabNav">
<mx:Glow id="glow1" .....settings />
<mx:Glow id="glow2" .....settings />
</mx:Sequence>

Then reference the Sequence or Parallel effect in the tag...

<mx:TabNavigator id="myTabNav" onCreationCompleteEffect="glow.play();">