I need to copy an entire movieClip/Class and not just call the construtor. I create a little class to illustrate my problem (you can copy/paste in frame 1 and create a empty movie clip in your library with linkage for actionscript (called the link "mcPolygon")).

Code:
FPolygon = function ()
{
	trace(this + " constructor called");
	
	this.createEmptyMovieClip("square_mc", 1);
}

FPolygon.prototype = new MovieClip();

FPolygon.prototype.Square = function ()
{
	trace(this + " square called")
	
	this.square_mc.lineStyle(1, 0x000000, 100);
	this.square_mc.beginFill(0x000000, 100);
	this.square_mc.moveTo(100, 100);
	this.square_mc.lineTo(200, 100);
	this.square_mc.lineTo(200, 200);
	this.square_mc.lineTo(100, 200);
	this.square_mc.lineTo(100, 100);
	this.square_mc.endFill();
}

Object.registerClass("mcPolygon", FPolygon);

_root.attachMovie("mcPolygon", "polygon_mc", 1);
_root.polygon_mc.Square();
trace(_root.polygon_mc + " width is : " + _root.polygon_mc._width);

_root.polygon_mc.duplicateMovieClip("polygon2_mc", 2);


trace(_root.polygon2_mc + " width is : " + _root.polygon2_mc._width);
then they output is:
Code:
_level0.polygon_mc constructor called
_level0.polygon_mc square called
_level0.polygon_mc width is : 102
_level0.polygon2_mc constructor called
_level0.polygon2_mc width is : 0
As you can see, the black square is not present in the duplicate movie clip. This is my problem.

I want the figure drawn in square_mc to be also copied when I duplicate polygon_mc without calling the Square method. Is this possible ?

Thanks in advance.
Martin

ps: I know I could just recall Square, but in my actual class I dynamically loaded an 100K image and I duplicate it 30 times. When I use duplicateMovieClip, the image get download 30 times. That why I need to duplicate the whole content of the movie, and I don't want just the constructor to be called.