What steps are necessary to make custom property bindings work correctly
in mxml components? There seem to be initialization/timing issues when
extending complex components. I wanted to add a property to the
DateChooserEx component. I did all the following:

1) the property is defined as a private member of the class (private var
_highlight:Array;)
2) the property has getters/setters defined
3) the setter function calls highlightDays()

The mxml looks like this:

<DateChooserEx id="cal" highlight="{myArray}" />

This does not work immediately. The setter function gets called and also
the internal highlightDays function executes but it seems as if the
nested components inside the DateChooser control are not
finished/initialized when the binding executes for the first time. 

Also, the events emitted by the DateChooserEx control (especially
creationComplete and show) seem to be triggered prior all internal
elements are rendered.

Any thoughts?

Dirk.


Reply via email to