PDA

View Full Version : [FMX]: Dynamically sizing a movie clip to match character width



bleutuna
April 12th, 2003, 07:46 PM
Okay,

For my menu on my page, I want to do things dynamically. For the drop down menu, I want to have a box around the link when moused over, that changes depending on the number of characters that are going to be placed on it.

http://www.bleutuna.com/interior_team.jpg

See how the "tab" around team is smaller than the menu? But GRAPHICS will be larger, and so on.

I'm parsing an XML file to pull in the data for the menu, so I want to handle this portion dynamically as well. Any ideas?

senocular
April 12th, 2003, 08:42 PM
MovieClip._width = TextField.textWidth

bleutuna
April 12th, 2003, 09:32 PM
:link:

Thanks! Duh, so easy and so sweet A+: