Resizable Button with background in flash CS4

Posted by Bhavesh.Bagadiya on Stack Overflow See other posts from Stack Overflow or by Bhavesh.Bagadiya
Published on 2009-12-07T15:39:59Z Indexed on 2010/06/03 1:04 UTC
Read the original article Hit count: 263

Filed under:
|
|
|

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,

© Stack Overflow or respective owner

Related posts about flash

Related posts about actionscript-3