On 2/11/17, 10:18 PM, "Justin Mclean" <jus...@classsoftware.com> wrote:

>Hi,
>
>I trying something perhaps a little too complex fro FlexJS. First off
>does FlexJS support binding on setters/getters yet?

Binding works mostly.  It looks like the generated code might need a
try/catch.  File a bug.

>
>I think that the setter is being called before bigBox exists. Debugging
>the code I can see that this.numElements is 0 inside the colour method.

Yes, that is probably the case.  If your properties are being applied to
objects being created later you may have to defer the application of those
properties.  That was true in regular Flex as well.

Properties get applied early, children are created later.  Most of our
other components have a model so properties applied early are set in the
model and children pull their data from the model when created.

-Alex


Reply via email to