External loaded SWF's loading within container

Hello all
I’m currently working on a site for which I am using the tutorial “Transistions between externally loaded SWFS” http://www.kirupa.com/developer/mx2004/transitions.htm

My problem is, that I have a swf load into the container, and I want a button in this swf to load a new swf in this same container. The tutorial gives the scripting on how to do buttons which are outside the container on the main swf (the one which has the container on it). So what should I do in order to make these buttons load swf in this container when they are themselves not on the main swf but in one of those loaded in the container.

Hope that wasn’t too Confusing… Here’s the original actionscript

on (release) {

if (_root.currMovie == undefined) {

_root.currMovie = “motel_02”;
container.loadMovie(“motel_02.swf”);
} else if (_root.currMovie != “motel_02”) {
if (container._currentframe >= container.midframe) {

_root.currMovie = “motel_02”;
container.play();

}

}

}

So the main swf with container is called motel.swf, the one loaded into the container is motel_01.swf and the one I am trying to load from a button on motel_01.swf is motel_02.swf

If you guys can help me out it would be greatly appreciated

Thanks!