On 4/18/17, 3:44 PM, "Justin Mclean" <jus...@classsoftware.com> wrote:
>Hi, > >> What does your attempt to use the pattern look like? > >if (getBeadByType(IFormatBead) == null) { > var klass:* = ValuesManager.valuesImpl.getValue(this, "iFormatBead"); > var bead:IBead = new klass() as IBead; > if (bead) { > addBead(bead); > } >} > >> Did you apply the pattern inside addedToParent()? > >Yes > >> Did you apply the pattern after super.addedToParent()? > >Before as that’s what the existing code did, but from what Peter written >it seems that super call needs to be after. Typically, the super.addParent() call goes first in order to apply any beads specified in MXML. HTH, -Alex