Can't.  You might have two parents, but display objects can only have
one.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of blc187
Sent: Monday, July 21, 2008 1:31 PM
To: [email protected]
Subject: [flexcoders] attaching one instance of a displayobject to
multiple containers

 

Is there a way to attach a displayobject to more than one container?
I have a canvas that I instantiated and drew onto, but I want to attach 
it onto two separate containers without having 2 separate instances of 
it.

When I do this:

var obj:MyCanvas = new MyCanvas();
container1.addChild(obj);
container2.addChild(obj);

it only shows up as attached to the second container.
How can I attach it to two without having to instantiate two versions 
of it?

 

Reply via email to