Autosize text and autoresize box

i really dont know what i’m doing wrong…

can you please look at the movie here : http://www.soromenho.net/flash/testing.swf

all i want is that the third text (“small”) appears aligned to the rectangle…

here’s the code. i attached the files too.


bgresize = function () {
	if (texto.desc_txt.length>=26) {
		texto.desc_txt.autoSize = true;
		texto.desc_txt.autoSize = "right";
		texto.bgtexto._x = texto.desc_txt._x;
		texto.bgtexto._width = texto.desc_txt._width+50;
	} else {
		texto.bgtexto._x = texto.desc_txt._x-100;
		texto.bgtexto._width = texto.desc_txt._width+150;
	}
};

thank u so much!