Need help with transitions

I am having a problem with this transition tutorial (http://www.kirupa.com/developer/mx2004/transitions2.htm). The movie works fine if all the swf’s are embeded on a page in the same directory but if I want to place the mainmovieMX.swf on an index page outside the directoy for example it doesnt work. What part of the script do I need to modify to root from the mainmovieMX.swf back to the other swfs?

Can someone help a newbee out?

Thanks in advance!