# Function() { do this, wait a second and then do this? };

**URL:** <https://forum.kirupa.com/t/function-do-this-wait-a-second-and-then-do-this/192491>\
**Category:** Uncategorized\
**Created:** [June 28, 2006, 11:26pm UTC](https://forum.kirupa.com/t/function-do-this-wait-a-second-and-then-do-this/192491 "2006-06-28T23:26:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikedkap](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@mikedkap](https://forum.kirupa.com/u/mikedkap)\
**Post date:** [June 28, 2006, 11:26pm UTC](https://forum.kirupa.com/t/function-do-this-wait-a-second-and-then-do-this/192491/1 "2006-06-28T23:26:09Z")

</div>

Does anybody have an idea how I can write this statement to have it do the ’ \_parent.vocab.play();’ wait a second or two and then finish the statement?

reflective.onPress = function() {  
\_parent.vocab.play();  
\_parent.vocab.vocab1.vocab\_nav.gotoAndStop(“reflective”);  
\_parent.vocab.vocab1.vocab2.gotoAndStop(‘reflective’);  
};

Thanks!  
Mike
