Thanks! I'll try it!

Erik Westra wrote:

> The only way (as far as I know) is to create a.mxml in Actionscript, 
> make it an Actionscript component.
>
> Greetz Erik
>
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] 
> On Behalf Of dimkapimkakolbasa
> Sent: maandag 4 juli 2005 16:11
> To: [email protected]
> Subject: [flexcoders] How can I place custom components into custom 
> components?
>
> The problem is:
>
> I want to create a component A in the file a.mxml and a component B in 
> a file b.mxml, and to use them both in the file main.mxml like here 
> (I've replaced triangle brackets by square ones!):
>
> main.mxml
> =====================
>
> [mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
> xmlns:local="*"]
> [local:A]
> [local:B /]
> [/local:A]
> [mx:Application]
>
> a.mxml
> =======================
> [mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml";
> xmlns:local="*"]
> [mx:Label ... /]
> [/mx:Canvas]
>
> b.mxml
> ========================
> [mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml";
> xmlns:local="*"]
> [mx:Image ... /]
> [/mx:Canvas]
>
> this example produces such an error:
>
> 1 Error found.
>
> Error main.mxml:
>
> The component B may not be used as a child of A because the A is a 
> container with internal children.
>
> If I understand it all correctly, then if I want to use such a 
> construction
>
> [local:A]
> [local:B /]
> [/local:A]
>
> then I should leave component A description in a.mxml empty, otherwise 
> it's not allowed to insert component B into it.
>
> Why is it so and how can I solve this problem?
>
> Thanks!
> Dima,
> [EMAIL PROTECTED]
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "flexcoders
>       <http://groups.yahoo.com/group/flexcoders>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
>       <mailto:[EMAIL PROTECTED]>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to