Auto resize a caption

Yes another bloody auto resize question. :sigh:

I’m hoping this one will be fairly simple though - I just can’t see it. I took a resizing prototype function from the compiled fla in the resizing slideshow thread (found here, post #171) and combined it with the concepts from the hover caption tutorial on kirupa. But instead of creating a dynamic text box in the hover movie clip I am creating the text dynamically using createTextField and then autosizing it using textfield.autoSize = true (didn’t seem to work when I used “left”). When you use createTextField you have to specify a width and height. The autoSize command seems to dynamically resize the textfield in height but not in width. When running a trace the width is always the same though the height changes.

Is there any way around this? Some of my captions will be quite short and will look really stupid sitting in a long colored box it doesn’t need.

An fla is available for anyone who needs to take a peek!

Thanks much -
:hr: