TextFormat.prototype.copy = function () { var nOBJ = new TextFormat(); for (var i in this) nOBJ[i] = this[i]; return nOBJ; } TF = new TextFormat(); TF.font = "Arial"; TF2 = TF.copy(); TF2.color = 0xFF0000; TXT1.setTextFormat(TF); TXT2.setTextFormat(TF2);