You'll have to override the whole child management API. mx.core.Container already does this for the case where it has scrollbars. See the internal contentPane property and how it's implemented. It's tricky and cumbersome.
On 4/27/07, Claudia Barnal <[EMAIL PROTECTED]> wrote: > Hi, > > What would I have to do to make the child of a Panel be the recipient > of any children added to that Panel, like below? > > For example, below if my custom container creates another container > (let's call it the xxx container) in the createChildren() method, how > can I make sure any children added to the parent container are added > to the xxx container? > > I guess I have to override the actual addChild() method, to bypass the > normal flow and adding the newly added children to the xxx container, > but how would that work out? > > <blah:CustomContainer> > <mx:HBox> > </mx:HBox> > <blah:CustomContainer> > > Any comments or ideas? > > Thanks, > Claudia > > > > Yahoo! Groups Links > > > >
