I gave an answer in your previous question here:
http://stackoverflow.com/questions/4000972/actionscripts-3-clone-movieclip
If you need to end with a MovieClip , you only need to add the resulting Bitmap to a MovieClip instance.
If you want to call a method , just create a Class with a static method.
This can only be used to copy graphic data.
public class Utils
{
public static function clone( cloneMe:MovieClip ):MovieClip
{
var mc:MovieClip = new MovieClip();
var bmd:BitmapData = new BitmapData(cloneMe.width , cloneMe.height );
bmd.draw( cloneMe);
var bm:Bitmap = new Bitmap(bmd);
mc.addChild( bm );
return mc;
}
}
Then in Flash, provided that you've added the Utils class to your Library path. You can do this:
var newClone:MovieClip = Utils.clone( cloneMe );
//etc...