AS2

In two movieclips how to call myfunction(parameter) so that the function loads only when it initializes like the onLoadInit method

myfunction.onLoadInit = function(parameter) {

trace("parameter==" + parameter);

}

I want to call a fucntion that does something like the above from the first mc while the function is declared in the second.