loadMovie not working with function

Hey,

I’m using this code


clipLoader = function (clip) {

if (_root.currMovie == undefined) {

_root.currMovie = clip;
_root.mcHolder.loadMovie(clip+ ".swf");
} else if (_root.currMovie != clip) {
if (_root.mcHolder._currentframe >= _root.mcHolder.midframe) {

_root.currMovie = clip;
_root.mcHolder.play();

}//end else

}//end if

};//end function

on an frame in the -root directory, and have a movieclip with the instance name on mcHolder on the stage (inside of that is a graphic of the mc, so i can set the alpha to 0 so i won’t have an ugly white outline of a box on the stage).

I call it with


clipLoader("portfolio");

and obviously have the correct swf’s in the folder etc…

But its not working! Usually i would use createEmptyMovieClip, but that can’t handle the things like _currentframe… which i need :expressionless:

Need any suggestions! Cheers :slight_smile: