Hi,
I want to create a button which resize dynamically with content. to achieve this, I created a MovieClip in library and added four layers into it namely - text, bg, shadow and border.
Problem I'm having is, if I make textfield autosize, only textfield resizes and others stuff remain as it is. if I calculate width required using xxxLineMetrics function and apply it to Button, background resizes properly but textfield also stretches with them and looks ugly.
I want backgrounds(sibling of textfield) resize properly with textfield so button looks nice with resized background and normal autosized textfield.
I hope u guys got what I want...any help appreciated...
Thanks,