Targeting nested instances - kirupa template

I have used a kirupa flash file to load an external swf file with transitions. http://www.kirupa.com/developer/mx2004/transitions.htm

Works fine by itself.

However, this file (kirupafile) will be used in another parent swf file (main_creative) as a sub navigation bar that allows me to load the external swfs w/transitions.

path: main_creative.kirupafile

When I do load the parent file the buttons don’t work right. I believe the first line is not able to “define” what is the .currMovie. Therefore when I load the file through my parent swf file it will always be undefined. Need some help here.

This is the as for the original button that I got on kirupa:

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = “section1”;
container.loadMovie(“section1.swf”);
} else if (_root.currMovie != “section1”) {
if (container._currentframe >= container.midframe) {
_root.currMovie = “section1”;
container.play();
}
}
}

Thanks in advance.

Dave