Thank you, that worked.  I just gave an ID (toDetailResize) to the
transition I wanted this to go after and used the below code:

toDetailResize.addEventListener(EffectEvent.EFFECT_END,
function(event:EffectEvent):Void{                                         
show();
});

John

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> Can you try putting an effectEnd handler on the Sequence and calling
> your method from there?
> 
> -----Original Message-----
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of shuell2000
> Sent: Tuesday, February 21, 2006 10:10 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Function call AFTER a transition
> 
> Can anyone help me with this issue.  I have a transition from one
> state to another to move and resize a form in a sequence with a slight
> duration set.  After that transition is done, and only after, I need
> to reposition dynamic objects on the canvas that was just resized.  I
> have a function that does this moving around of the objects on the
> canvas, but how do I call it based on the transition ending?
> 
> <mx:transitions>
>       <mx:Transition id="toDetail" fromState="*" toState="details">
>               <mx:Sequence target="{details}">
>                       <mx:Move duration="1400"/>
>                       <mx:Resize duration="1400"/>
>               </mx:Sequence>
>       </mx:Transition>
>       <mx:Transition id="toBrowse" fromState="details"
> toState="browse">
>               <mx:Sequence target="{details}">
>                       <mx:Move duration="1400"/>
>                       <mx:Resize duration="1400"/>
>               </mx:Sequence>
>       </mx:Transition>
> </mx:transitions>
> <mx:states>
>       <mx:State name="browse">
>               <mx:SetProperty target="{details}" property="width"
> value="431"/>
>               <mx:SetProperty target="{details}" property="x"
> value="150"/>
>       </mx:State>
>       <mx:State name="details">
>               <mx:SetProperty target="{details}" property="width"
> value="565"/>
>               <mx:SetProperty target="{details}" property="x"
> value="0"/>
>       </mx:State>
> </mx:states>
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to