Auto size button for Flash components
I’ve recently been working outside of Flex in standard Flash & Actionscript, so I thought I’d take the opportunity to try the CS3/4 components. They’re much leaner than their bigger brother’s, and as a consequence don’t offer anywhere near the functionality, but their simplicity means they’re fast and easy to work with.
I ended up tweaking most of the components in some way or another. The most important tweak was to create an auto sizing Button. The standard Button doesn’t change it’s width based on the label length, which is crucial to any web project these days, especially if it’s multi-lingual. So here’s my solution, with both an example and the code:
Posted: April 19th, 2009 under Uncategorized.
Comments: 1