Piotr, Santanu may be right that there are dynamic MXML scenarios involving states and includeIn/excludeFrom. In those cases, the instances are created by MXMLDataInterpreter just like other MXML tags, but may not be added to the DOM until much later, or removed and re-added as states change.
I haven't looked at the code, but are you sure that whatever isDynamic does can't be run on addedToParent? Thanks, -Alex On 3/2/17, 5:06 AM, "piotrz" <piotrzarzyck...@gmail.com> wrote: >Sankar, > >Code which you are showing me should work without the problem. > >var tmpComp:Button = new Button(true); - need to be true in constructor. > >This: > > <mdl:Button text="Click to add External components" > click="button1_clickHandler(event)" > accent="true"/> > >You don't need any action cause MDL will handle this one. > >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-tp59595p59983.html >Sent from the Apache Flex Development mailing list archive at Nabble.com.