Pause Root Timeline - External SWF

Hi peeps, I’m having a problem with an externally loaded SWF, more specifically the temporary pausing of the playback head in the timeline within it.

My main movie consists of about 10 scenes each with 200+ frames of tweened animation and general info presentation. If the user walks off and doesn’t move the mouse for a period of time then the presentation switches to auto-mode and loads the external SWF using this code:

// moves to a blank scene so as to keep background tasteful.

var userActive:Boolean = false;
var activeIntervalID:Number;
this.onMouseMove = function():Void {
userActive = true;
}
function noActivity():Void {
gotoAndStop(“blank”, 1);
loadMovie(“fscommand/auto.swf”, 1);
}
function activeTest():Void {
if(userActive) {
userActive = false;
} else {
noActivity();
}
}
activeIntervalID = setInterval(activeTest, 10000);


So far, so good. it works fine to this point, and the external SWF loads A-Okay.

The auto mode is a SWF of the same 10 scenes but instead of button clicks triggering a progression through the presentation, I have a script on the relevant frames to hold the playback head for a few seconds, then the playhead continues onwards through the slides of info. This ‘pausing’ code is a frame script as follows:

_root.pauseCount = 0;
function pause(pc) {
if(_root.pauseCount == pc) {
clearInterval(pauseInt);
play();
trace(“fishy!”);
}
else {
_root.pauseCount++;
}
}
pauseInt = setInterval(pause, 0, 5000);
stop();

Now the problem. When saving and previewing this auto-mode SWF on it’s own, the pausing works correctly, it then continues to play, and the output window displays ‘fishy!’, but when loaded in through the container presentation the SWF seems to pause for the correct amount of time but then reverts back to frame 1 and loops continuously instead of continuing along the next part of the timeline. No ‘fishy!’ either.

Yikes! Why is this? Help seriously appreciated.

Thanks in advance, alan-can.