Clickable slide show with external SWFs

Hi… I would really apprecaite some help with the slide show please.

I have a slide show that loads 3 external SWFs. (The External SWFs have buttons and action script of their own as well )

I’ve gotten the SWFs to load and to switch automtically as well as on the button Click (going to next SWF in array). What I would like to do is the following:

  • Have the buttons 1,2 and 3 go to respective SWFs (and not just a next button option)

Also, as far as transitions (just basic fade in and out) is that something I should do within the external movie Clip?

Thank you very much I appreciate all the help. Here’s my 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 - the next MC starts

function runOnce(e:Event):void {
if(thisMC.currentFrame == thisMC.totalFrames) {
thisMC.removeEventListener(Event.EXIT_FRAME, runOnce);
index = (index + 1)%(clips.length);
nextClip()
}
}
// “Next button” just calls a function that goes to the next file name (mod the number of files in the list)

MovieClip(parent).bttn1_mc.addEventListener(MouseEvent.CLICK, playNext);

function playNext(e:MouseEvent):void {
nextClip();
index = (index + 1)%(clips.length);
}

Thank you!!!