Resize dynamic textfields based on text width

my menu items are movieClips and inside them are dynamic textfields in which text is loaded through xml file.

and i am placing them on x axis one after another with a 5 px space in between them.

now every movieClip has its fixed width and the picture peferctly explains my problem :slight_smile:

i want to make it so that the dynamic textfields inside set its width based on how long text goes in each one of them and then ofcourse than the movieClips which hold these dynamic textfileds resize its width as well, so even if i wrote long text inside my xml file everything looks nice :slight_smile:

i appreciate any advice on how to make this work :stuck_out_tongue: