How to load my Gallery.swf on Page 6. It loads on first page (HomePage_mc)?

Hi,

The following code loads my “Gallery.swf” external file on HomePage_mc (Which is Page-1). But I would like it to load it on Gallery_mc (which is Page-6). How can I do that?

The following is the code:

ButtonsPanel_mc.Gallery.addEventListener(MouseEvent.CLICK, GalleryClick);

function GalleryClick(e:Event):void{
if(currentClip != Gallery_mc){
currentClip.visible = false;
Gallery_mc.visible =true;
currentClip =Gallery_mc;}

var Xpos:Number = 110;
var Ypos:Number = 180;
var swf:MovieClip;
var loader:Loader = new Loader();

var defaultSWF:URLRequest = new URLRequest("swfs/Gallery.swf");

loader.load(defaultSWF);
loader.x = Xpos;
loader.y = Ypos;
addChild(loader);}

[COLOR=#0000ff]PS: There was a problem with a curly bracket. Now it is fixed but when I go to home page or any other page after clicking on the Gallery button, the Galley.swf but still playing on top of all those pages. How to fix it?[/COLOR]

Thanks.