Image Transition w/ mask won't work if loaded into MC

I have a main movie that I would like to load an image transition effect into. I have used a movie clip to load it. It seems to work fine if i play the swf on its own, but once I load it into a movie clip the transition no longer plays. I also tried to load it into levels but i get the same problem. The transition uses a mask and it seems like this is the problem but I can’t seem to figure it out.

This is the link to the transition the way it should look:
http://creativewedsites.com/image_effect.swf

when it gets loaded into a movei clip the masking part doesnt play and you just see the images go by without any effect. Here is the code for the effect if it helps. Thanks in advance if anyone can help.

//Create the picMask
_root/attachMovie(“picMc”, “picMask”, 1000);
picMask._x = 215;
picMask._y = 129;

//Create the picBg which role as the background image.so called “preference object”
_root.attachMovie(“picMc”, “picBg”, 500);
picBg._x = 215;
picBg._y = 129;

//Create the Mask
_root.attachMovie(“maskMC”, “myMask”, 2000);
myMask._x = 215;
myMask._y = 129;
_root.attachMovie(“bgMask”, “bgMask”, 700);
bgMask._x = 215;
bgMask._y = 129;

//Do the Mask job of setting picMask to Mask.
picMask.setMask(“myMask”);
picBg.setMask(“bgMask”);

//Create the animation pic loction array
picLocArr = [-2500, -1600, -2500, -690];

//animation MC of pic.
onEnterFrame = function () {
with (mode) {
mode = myMask._currentFrame;
if (myMask._currentFrame == 5) {
myMask.gotoAndStop(1);
}
}
if (picPlay != false) {
// trace(Math.abs(picLocArr[selectPicNum-1]-picMask._x));
picMask._x += (picLocArr[selectPicNum-1]-picMask._x)/6;
picBg._x += (picLocArr[selectPicNum-1]-picBg._x)/4.2;
if (Math.abs(picLocArr[selectPicNum-1]-picMask._x)<0.2) {
picMask._x = picLocArr[selectPicNum-1];
picPlay = false;
}
// end if
// trace(Math.abs(picLocArr[selectPicNum-1]-picMask._x));
}
// end if
};
//change pattern of mask.
mode.onPress = function() {
mode._x++;
mode._y++;
myMask.nextFrame();
};
mode.onRelease = function() {
mode._x–;
mode._y–;
};
//init;
var selectPicNum = 1;
var selectedPicNum = 1;
var picPlay = false;
contour.swapDepths(5000);