Pausing the loaded movie 5 secs

This script pauses 5 secs the timeline… if I put that on a frame in main
timeline
works ok…

// Set the following two values for how long you want to
// loop, and how many frames to loop:
pauseDuration = 5*1000;
framesInLoop = 1;
if (startTime == null) {
startTime = getTimer();
gotoAndPlay (_currentframe-framesInLoop);
} else {
lapsedTime = getTimer()-startTime;
if (lapsedTime<pauseDuration) {
gotoAndPlay (_currentframe-framesInLoop);
} else { startTime = null;
}
}

However I need to pause a swf loaded into level1 when a button is pressed…
I couldn’t customize it to make it work…
I thought that changing the gotoAndPlay for level1.gotoAndPlay would be
enough
but it is not… can someone help me please?

Thank you!