Heirarchy of empty clips

I’m having trouble w/ external SWF’s functions once loaded into empty mc’s. I have my main stage w/ an empty movie clip sitting on the stage. I load external parts of the site into this clip. Now I have a swf which is the photo section. within that section I a empty clip sitting on that stage. I have buttons on that stage which call upon the external swf’s which hold the main photos. When I preview the main photo swf everything works fine. When I load that onto the main stage of the site, nothing works. here is the code I’m using within the main photo section. The rollovers are not working either. I know it’s a bit more info I need to add but not sure how to go about it.
on (rollOver, dragOver){
_root.thumbs.heart.gotoAndPlay(2);
}
on (rollOut, dragOut){
_root.thumbs.heart.gotoAndPlay(9);
}
on(release){
unloadMovie("_root.photoloader")

loadMovie(“mary.swf”,"_root.photoloader");
}
Really need some advice or a point in the right direction w/ this.

Maybe it would be better if you just remove the whole photoloader, and than create a new one with your new external *.swf in it.

//-------------------------------------------------------->
// this is a function that you must place on your main timeline:
function loadMyMovie(externalMovieName,oldHolderName,newHolderName){
_root.removeMovie(oldHolderName);
_root.createEmptyMovieClip(newHolderName);
loadMovie(externalMovieName,newHolderName);
}
// the action on your button:
on(release){
_root.loadMyMovie(“mary.swf”,“photoloader”,“photoloader”);
}
//-------------------------------------------------------->

Good luck,
Martijn Himpers