Function that creates a container mc

sorry to clutter up the forum - I saw a post on here yesterday that explained how to write a function that creates a container movie clip and then when called loads a movie into it.

can anyone point me to it?

thanks