Good question. :-)

It depends on the type of bead.

Any beads that are added using MXML will be added in the addeToParent method. 
The reason for this is because many beads need the component to be added to the 
DOM.

If it’s a bead which does not need the DOM structure to be set up, you can 
simply add it in the class constructor after super().

HTH,
Harbs

> On Jun 15, 2020, at 2:40 PM, Maria Jose Esteve <mjest...@iest.com> wrote:
> 
> Hello,
> I am extending a component and need to add a default bead to it. (This is a 
> jewel control but I imagine it will be similar in basic or mx)
> I have seen in the SDK code that there is no "fixed point" where to add it: 
> in some controls they are added in the same constructor, in others they are 
> added in the addToParent, in others in the addBead ...
>  
> Where should I do it?
>  
> Thank you.
> Hiedra.

Reply via email to