How to pass a dynamic linkage ID to the attachMovie method

I’ve got several movie clips in the library, each with its own Linkage ID. I have a need to pull different movie clips from the library using attachMovie based on mouse position, etc, but haven’t figured out how to dynamically pass the linkage ID parameter. Based on the position of the mouse during a click, I’m ‘building’ the linkage name and passing it in.

I know you can make the 2nd and 3rd arguments dynamic such as:

var myClip = “MC_” + i + “_Left”;

attachMovie(myClip, “newClip” + i, i);

…but I have tried to do the same thing for the “myClip” portion of the above code and it doesn’t work.

Any ideas??

Also - has anyone had any issues with CS5 ‘dropping’ linkage names after exporting? IE: you can see the linkage name in the library, but when exporting to SWF, it ‘unlinks’ itself?

thanks much in advance!

I’ve actually determined that you can indeed pass dynamic values as I’ve described above, I had a slight typo that was preventing it from calling properly.