A display object can only have a single parent, so you will have to have two
instances.

On Mon, Jul 21, 2008 at 3:31 PM, blc187 <[EMAIL PROTECTED]> wrote:

>   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