# Need help on this please

**URL:** <https://forum.kirupa.com/t/need-help-on-this-please/218382>\
**Category:** Uncategorized\
**Created:** [March 7, 2007, 11:53am UTC](https://forum.kirupa.com/t/need-help-on-this-please/218382 "2007-03-07T11:53:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benix30](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Benix30](https://forum.kirupa.com/u/Benix30)\
**Post date:** [March 7, 2007, 11:53am UTC](https://forum.kirupa.com/t/need-help-on-this-please/218382/1 "2007-03-07T11:53:51Z")

</div>

…I have a btn symbole that need’s to take me to a different time line in my animation, that’s simple, no problem there, the problem is that I need that same button to trigger to animation before leaving that timeline…

…Here’s my code :

on (press) {  
\_root.window\_mc.gotoAndPlay("\_out")  
\_root.dozen\_mc.gotoAndPlay("\_out")  
\_root.gotoAndPlay("\_what") \> That command need to wait that the 2 other one before are completed before execution  
}  
…Do you know how to put a delay or a condition so it’s not changing timeline right away…?

…Thank’s, much appreciated…!

Ben
