For future reference, here's how that would look.  Thanks Doug!

http://pastie.textmate.org/234868




On Wed, Jul 16, 2008 at 9:59 AM, Doug McCune <[EMAIL PROTECTED]> wrote:

>   Set a dirty flag in your setter (like childrenDirty = true) and call
> invalidateProperties(), then override commitProperties() and check if
> your dirty flag is set, if so then add the children in there.
>
> Doug
>
>
> On Wed, Jul 16, 2008 at 8:52 AM, Sean Clark Hess <[EMAIL 
> PROTECTED]<seanhess%40gmail.com>>
> wrote:
> > Hi everybody,
> > I know how to add children to a component doing something like the
> > following, but I can't help but think there ought to be a better way to
> do
> > it. Perhaps I should be overriding one of UIComponent's methods? Anyway,
> > the issue (see link) is that container isn't defined when the setter is
> > called. Where is the proper place to actually add the children?
> >
> > http://pastie.textmate.org/234853
> >
> > You would use it like this --
> >
> > <me:myComp>
> >
> > <me:newChildren>
> >
> > <mx:Button label='new button'/>
> >
> > </me:newChildren>
> >
> > </me:myComp>
> >
> > Thanks!
> >
> >
>
>  
>

Reply via email to