so you want to do this 
<customComponent>
    <mx:HBox>
        <mx:Label/>
    </mx:Hbox>
</customComponent>
 but without putting the Hbox as an attribute?
I think then you would need a defaultProperty but i have no idea if it will 
work.

----- Original Message ----
From: Joseph Abenhaim <[EMAIL PROTECTED]>
To: "[email protected]" <[email protected]>
Sent: Monday, January 28, 2008 3:39:53 PM
Subject: [flexcomponents] Adding child to component subchild

I was trying to find out ways to have a custom component addchild method be
overriden to instead of adding child to the component itself, at it to one
of it's child. Example below:

Lets say I have a custom component which extends Canvas, inside this
component, I have a Hbox container.

When I put this component in MXML I'm trying to have it like so:
<customComponent>
<label>
</customComponent>

I would like the label to actually be added to the hbox inside the canvas.
Any way to do this at all ?

Thanks.

-- 
Joseph Abenhaim 
Sr. Software Engineer - Flex
AOL Personal Media





      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Reply via email to