Array.prototype.toString = function() : String { return "[" + this.join(", ") + "]"; }; trace([1, 2, 3]);