>From the top of my head (not tested and most likely not working):

import mx.containers.Canvas;
import mc.controls.Label;

class A extends Canvas
{
        private var _label:Label;

        public function Canvas()
        {
        };

        public function createChildren():Void
        {
                super.createChildren();
                _label = Label(createChild(Label));
        };
};


Then in mxml u can do:

[local:A]
        [local:B /]
[/local:A]


>If I make a component in ActionScript, how can I later integrate it
with MXML?

Nothing special :)


>How can I make a component with an MXML container as a GUI and some
data simultaneously in ActionScript?

I don't understand your question completely, but I think u just want to
extend some container class and code away.




Greetz Erik


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of ch_flex
Sent: dinsdag 5 juli 2005 17:06
To: [email protected]
Subject: Re: [flexcoders] How can I place custom components into custom
components?

If I make a component in ActionScript, how can I later integrate it with
MXML? For example, if I describe a component in "A.as" - what should I
do to enable such a construction in "main.mxml" in my example:
[local:A /]

How can I make a component with an MXML container as a GUI and some data
simultaneously in ActionScript?

Thanks,
Dima.



--
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