If you want to use your component as a container then preferable is to extend the container Class. but if you want to extend UIComponent only then you have to implement the container interfaces such as IContainer, IDataRenderer, IFocusManagerContainer, IListItemRenderer, IRawChildrenContainer.
HTH, -Ravi On Mar 10, 9:54 am, vengu <[email protected]> wrote: > Folks, > > I have a component which I intend to use as a container. I have > created it by extending a UIComponent. > > Now I want to be able to add children to it by using mxml notations > like we would do for a VBOX. > > How do I achieve this? > > Ex: > > <local:MyCompnent> > <mx:Button/> > </local:MyCompnent> > > where as MyComponent extends a UIComponent --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

