FWIW, MXML cannot set constructor arguments. All components instantiated via MXML must have no constructor arguments or optional constructor arguments.
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? Thanks, -Alex On 2/23/17, 8:12 AM, "piotrz" <piotrzarzyck...@gmail.com> wrote: >I was thinking more about solution for this and I think that interface is >not >the right way. > >If my component will implement interface during creation I will always >have >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 >be >dynamic. > >var textField:TextField = new TextField(true); > >Piotr > > > >----- >Apache Flex PMC >piotrzarzyck...@gmail.com >-- >View this message in context: >http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Dynamic-Ch >ild-Problem-tp59595p59836.html >Sent from the Apache Flex Development mailing list archive at Nabble.com.