MovieClip.prototype.createJustifiedText = function(name, depth, x, y, width, text, format) { this.createEmptyMovieClip(name, depth); this[name].createTextField("tempCamp", 10000, 0, 300, 0, 0); this[name].tempCamp.setNewTextFormat(format); this[name].tempCamp.text = "lala"; this[name].tempCamp.autoSize = true; this[name].tempCamp.embedFonts = true; var iniY = this[name].tempCamp._height; this[name].tempCamp.text += newline+"lala"; var finY = this[name].tempCamp._height-iniY; this[name].tempCamp.removeTextField(); var posX = 0; var posY = 0; var j = 0; var l = 0; var promedio = 0; this[name]._x = x; this[name]._y = y; var aSaltos = text.split(String.fromCharCode(13)); for (var ij = 0; ijwidth) { posY += finY; posx -= this[name]["campo"+l]._width; this[name]["campo"+l].removeTextField(); i--; promedio = (width-posX)/(j-2); for (k=1; k