The more I use Flex the more I love its extensibility. Being able to extend, view, or copy the native Flex code makes my job so much easier. Here’s a short tutorial demonstrating how it can help. I promise there isn’t much typing involved, but if you just want to skip to the coding and view the final source you can do so by right-clicking the finished help button at the bottom of the post and clicking “View Source”.
Flex doesn’t offer an image button, but let’s say you need one for an application that requires a question mark help button. Here’s one way to do it:
Back in 2007 I posted a tutorial explaining how to dynamically create movie clip buttons using AS2. I received a lot of feedback on it including some great questions, like “How can I auto-select a button?” and “Can you do this in AS3?”. Like the Clickable Button in a Draggable Clip app that I re-coded in AS3, I felt that recoding this app could be a good exercise that would offer an introduction to some basic, frequently-used techniques for someone learning AS3.