# \_root. with wait

**URL:** <https://forum.kirupa.com/t/-root-with-wait/246865>\
**Category:** flash\
**Created:** [December 15, 2007, 5:03pm UTC](https://forum.kirupa.com/t/-root-with-wait/246865 "2007-12-15T17:03:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beppeartz](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@beppeartz](https://forum.kirupa.com/u/beppeartz)\
**Post date:** [December 15, 2007, 5:03pm UTC](https://forum.kirupa.com/t/-root-with-wait/246865/1 "2007-12-15T17:03:58Z")

</div>

hello guys

i got this code:

onClipEvent (enterFrame) {  
if (!loaded && this.\_url != \_root.\_url) {  
if (this.getBytesLoaded() == this.getBytesTotal()) {  
loaded = true;  
\_root.transition.gotoAndPlay(“opening”);  
}  
}  
}

and than i would like to load another image  
and i put this code…  
it works…  
but i would like to put all these codes in the same frame, and put a time between every image…  
for example…

//wait 20 seconds//  
\_root.section = “images/kualkosadi.jpg”;  
\_root.transition.gotoAndPlay(“closing”);  
//wait 20 seconds//  
\_root.section = “images/colors.jpg”;  
\_root.transition.gotoAndPlay(“closing”);

etcc…

how can i do an actionscript who says to wait 20 second?

bye bye
