Tuesday, May 13, 2008

missing enabledChanged metadata in mx.core.UIComponent

I could write a long drawn-out post about how we were creating event listeners today to set the enabled property of some of the button classes in our custom forms at work... blah blah blah.

Bottom line, UIComponent.as is missing this line:
[Event(name="enabledChanged", type="flash.events.Event")]

Give it a shot. Create a component that extends mx.core.Container (or, in our case, extends a custom component that extends Form.as) and create a function bindable to "enabledChanged". It won't work until you add the metadata somewhere.

That is all.

0 comments: