flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FlexJS] MDL - Dynamic Child Problem
Date Fri, 24 Feb 2017 04:00:44 GMT
FWIW, MXML cannot set constructor arguments.  All components instantiated
via MXML must have no constructor arguments or optional constructor

I still think the lifecycle should be able to tell you whether an addChild
is happening "dynamically" or not.  Has that been explored and abandoned?


On 2/23/17, 8:12 AM, "piotrz" <piotrzarzycki21@gmail.com> wrote:

>I was thinking more about solution for this and I think that interface is
>the right way. 
>If my component will implement interface during creation I will  always
>two lines of code:
>var textField:TextField = new TextField();
>textField.isDynamic = true:
>I think I will just add field to constructor to each component which will
>var textField:TextField = new TextField(true);
>Apache Flex PMC
>View this message in context:
>Sent from the Apache Flex Development mailing list archive at Nabble.com.

View raw message