PDA

View Full Version : Custom Buttons: How to Dynamically Label?


jlfximedia
10-02-2006, 04:32 PM
I have a box that i converted into a button. In the layers for that element I added a dynamic text field to label the button as needed. But the text field seems to be preventing any clicks from taking place when tested.

On the outer boundary, beyond the text field the button works. But over the text it does not. Any help is much appreciated...

iknow
10-02-2006, 04:57 PM
One trick is on a different layer put a transparent button on top of the text field and the normal button. So, the normal button actually doesn't have to be a button, it may just be a graphic served as the button background.

kennard
10-03-2006, 01:10 AM
Make sure you have the textfield's selectable property set to false, either via ActionScript at runtime, or in the properties inspector while designing.