Flash – ComboBox – Green Halo (won’t disable if you load into another swf bug)

Thursday, September 17th, 2009 | actionscript, code hacking

If you have a combox in a swf, and load that swf into a wrapper swf, it’s POSSIBLE the green halo will stick around long after you scroll and make a selection.

Simply add this to your actionscript:

yourComboBox.drawFocus = “”;
yourComboBox.dropdown.drawFocus=”";

That should disable it. There. That’s a headache I hope I can spare you. I can’t tell you how long I worked with “_focusrect” and “focusRectEnabled” before find that solution.

FTD

Popularity: 10% [?]

2 Comments to Flash – ComboBox – Green Halo (won’t disable if you load into another swf bug)

Vince
September 30, 2009

There is also another way to change the color:

yourComboBox.setStyle (“themeColor”, “0xFFFFFF”);

dominic
October 6, 2009

Very nice! We’d have to change the themeColor for both input fields.

Leave a comment