# Autosize text and autoresize box

**URL:** <https://forum.kirupa.com/t/autosize-text-and-autoresize-box/185082>\
**Category:** Uncategorized\
**Created:** [April 10, 2006, 8:34pm UTC](https://forum.kirupa.com/t/autosize-text-and-autoresize-box/185082 "2006-04-10T20:34:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![liquify](https://avatars.discourse-cdn.com/v4/letter/l/e95f7d/32.png) [@liquify](https://forum.kirupa.com/u/liquify)\
**Post date:** [April 10, 2006, 8:34pm UTC](https://forum.kirupa.com/t/autosize-text-and-autoresize-box/185082/1 "2006-04-10T20:34:27Z")

</div>

i really dont know what i’m doing wrong…

can you please look at the movie here : [http://www.soromenho.net/flash/testing.swf](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.

```auto

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!
