Need help on this please

…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