How do i write this?


function myFunction(myMC) {
	myMC.attachMovie(myMC, myMC, getNextHighestDepth());
}

myFunction(test);

I want this to attach a MC from my library called “test” to a movieclip holder called “test” on the canvas and have it named test. In the end, the instance path would be _root.test.test.

The problem is myMC (the one right after the first parenthesis) is not populating correctly because it is not being read by Flash properly.

The typeof myMC is movieclip. I can String(myMC), but still no hope. How do I get this done?