Keeping loaded movies functional

Hi everyone. I’m sort of new to flash, so this may be an easy question or not…

I tried searching for an answer, but I really don’t even know how to search for it.

Ok here’s the deal: I’m building a full flash site.

I have a main movie, let’s call it “A”, and it loads movies in a container.

I have a second movie, “B”, that loads into the container when I press the correct button.

Here’s when it gets complex: My swf “B” has an Accordion component, that has two childs (children?) that, whenever I press on them to switch for the other, it plays a click sound. Also, the movies loaded in the Accordion have buttons that are links to sites, so I programmed a pop up balloon that shows a preview of the linked site.

The thing is, everything works fine when test/publish movie “B” alone. However, when I test movie “A” and click on the “call B” button, “B” loads fine, the accordion works fine, but neither the click sound nor the popup thingies work!!

I can show you the code if you guys want. All objects inside “B” aren’t targeted, meaning the don’t have this.INSTANCE NAME nor _parent.INSTANCE NAME nor _root.INSTANCE NAME. I have tried targeting thusly, and they still don’t work.

I was just wondering: any ideas on how to, I don’t know, maybe “isolate” the functions of “B” movie so that they keep working even when they are called inside another movie? Is there any kind of targeting strategy here that I’m missing???

Well, I hope I made myself clear and that anyone has any ideas on how to solve this! Thanks in advance.

here’s the code for the sound and the creation of the accordion’s children (this is inside movie “B”):

var s:Sound = new Sound();
this.s.attachSound(“click”);

//Accordion

//menu options

var child1 = my_acc.createChild(“View”, “opcion1”, {label:“Páginas Regionales”, icon:“Folder”});
var child2 = my_acc.createChild(“View”, “opcion2”, {label:“Páginas Internacionales”, icon:“Folder”});

my_acc.opcion1.createChild(“Regionales”, “Regionales_mc”);
my_acc.opcion2.createChild(“Internacionales”, “Internacionales_mc”);

var whoIsOn = child1;

var accList = new Object();

accList.change = function (){
whoIsOn = acc.getChildAt(acc.selectedIndex);
this.s.start();
}

my_acc.addEventListener(“change”,accList);