You need to override Button's updateDisplayList() method. Take a look at the source code for this method. In the two places where it gets and sets textField.text, try changing it to textField.htmlText.
Gordon Smith Adobe Flex SDK Team ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Austin Kottke Sent: Friday, April 11, 2008 4:01 PM To: [email protected] Subject: [flexcoders] html in a button's label field? Using internal textfield... Hi, I'm trying to put html text into a button. I've subclassed a button component, and tried to modify the internal textfield as in the docs it says that the textfield is the internal textfield that the label works with. I try: this.textField.text = this.category.getId(); this.textField.htmlText = this.category.getId(); And nothing happens. I do this.label = this.category.getId() and everything shows up fine. Anyone have a clue? Is the internalTextfield for a button not really affect the label of a button? - Austin

