# Pause script?

**URL:** <https://forum.kirupa.com/t/pause-script/250832>\
**Category:** Uncategorized\
**Created:** [February 1, 2008, 11:21pm UTC](https://forum.kirupa.com/t/pause-script/250832 "2008-02-01T23:21:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawnblock](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@dawnblock](https://forum.kirupa.com/u/dawnblock)\
**Post date:** [February 1, 2008, 11:21pm UTC](https://forum.kirupa.com/t/pause-script/250832/1 "2008-02-01T23:21:21Z")

</div>

Hi. I have some actionscript for a button to do several things. Here is the function:

function homeAboutClick() {  
\_root.home.gotoAndPlay (“clear\_home”);  
\_root.nav.gotoAndPlay (“go\_main”);  
\_root.al\_text.load (“text1”);  
\_root.al\_content.load (“about\_mc”);  
}

The problem is that in order to execute the load actions it has to gotoAndPlay (“clear\_home”); and play about 40 frames before the al\_text and al\_content are available to have anything loaded into them. In other words, the script tells it to load something before the “container” is on the timeline/stage. Any suggestions as how to remedy this? My instinct is to somehow tell the script to pause before completing the last two commands, but I’m open to other suggestions. Thanks!  
dawn
