I ran into a problem where I have to duplicate a movie clip on a movie, to make an endless scrolling menu. The problem is I don't know real well how to do it, I can do it fine with graphics but it looks like not possible to do it with mc.
here's a sample of my code I am trying to attemp
Code:
var refFirst:MovieClip = MovieClip(menuGroup.getChildAt(0));
var copyFirst:test1 = new test1;
trace (refFirst.name);
In order to create a new movieclip instance with "new whatever()" you need to link it to an actionscript class called whatever. So in your library, right-click test1 and set up the class linkage. Don't worry if it tells you that the class can't be found at that point, as it will create one for you.
This sort of movieclip creation will create them as they are in the library. It will not duplicate any changes made to the clip at runtime such as added children, transforms, or drawing api.