Communicating with container SWF from External SWFs

Hi All…

I would like some help please controlling the slideshow from withing an external swf.

What I have is a SWF file that calls out to 3 different SWF files via the following code:

// Array of external clips to use. Variable index refers to next clip to be displayed.
var clips:Array = [“page1.swf”, “page2.swf”, “page3.swf”];
var index:int = 0;

// Stuff to load swf files
var thisLoader:Loader = new Loader();
thisLoader.contentLoaderInfo.addEventListener(Event.INIT, doneLoading);

var thisMC:MovieClip = new MovieClip();
stage.addChild(thisMC); // Add empty MC initially so the nextClip function can be generic

// Removes old MC and gets the next one, waiting until when it has initialized beore adding it to the stage
function nextClip():void {
thisLoader.load(new URLRequest(clips[index]));
}

// Tell AS that the loaded file is a movie clip and add it to the stage.
function doneLoading(e:Event):void {
stage.removeChild(thisMC);
thisMC = MovieClip(thisLoader.content);
thisLoader.unload();
thisMC.addEventListener(Event.ENTER_FRAME, runOnce);
stage.addChildAt(thisMC,0);
thisMC.gotoAndPlay(1);
}

**
// When thisMC has finished, play the next clip**

function runOnce(e:Event):void {
if(thisMC.currentFrame == thisMC.totalFrames) {
thisMC.removeEventListener(Event.ENTER_FRAME, runOnce);
index = (index + 1)%(clips.length);
nextClip();
}
}

// Call the nextClip funtion initially to ge tthe ball rolling

**nextClip();
**

What I would like to do is be able to click on the buttons within page1.swf, page2.swf and page3.swf to go to respective SWF files in addition to them sliding automatically as they do now… Also, I would like to have a control on how long each movie clip stays on stage… Any help would be super appreciated… Thank you ahead of time!