Topic: Buttons inside container not loading galleries

Hi-

I'm trying to set up buttons to load multiple galleries into one container. I had everything working fine until I had my page load my multiple gallery swf (mcDiagram.swf) into a container (mcLoader_diagram). Now the buttons do not work.

Here's my code:

Stage.scaleMode = "noScale";
Stage.align = "TL";
var listener:Object = new Object();
listener.onResize = positionContent;

function positionContent():Void {
   mcPackage._x = 25;
   mcPackage._y = 25; 
   mcLogo._x = Stage.width - mcLogo._width - 25;
   mcLogo._y = 25
   mcLoader_diagram._x = Stage.width / 2 - mcLoader_diagram._width / 2;
   mcLoader_diagram._y = Stage.height / 2 - mcLoader_diagram._height / 2;
}

var mcl:MovieClipLoader = new MovieClipLoader();
mcl.loadClip("mcDiagram.swf", mcLoader_diagram);

listener.onLoadInit = function():Void  {
  positionContent();
  Stage.addListener(this);
};
mcl.addListener(listener);

_global.SVStageWidth = 550;
_global.SVStageHeight = 400;

mcDiagram.btn_1.onRelease = function(){
   loadGallery("gallery1.xml");
}

mcGal2.onRelease = function(){
    loadGallery("gallery2.xml");       
}

function loadGallery(galName){
    _root.xmlDataPath = galName; 
    mcLoader_viewer.loadMovie("viewer.swf");
}


I'm trying to load the galleries into the mcLoader_viewer. I've tried this as well to no avail:

mcLoader_diagram.mcDiagram.btn_1.onRelease = function(){
   loadGallery("gallery1.xml");
}


Basically I need to tell the actionscript that my buttons are inside a container inside a swf. Not sure if my other code is messing things up. How do I do this?

Thank you so much.

Re: Buttons inside container not loading galleries

Did you look at the "multiple_galleries.fla' example and docs - section 3.2 here: http://www.airtightinteractive.com/simp … html#embed

Felix Turner
SimpleViewer Support Team.