Get the child of canvas

Hi,

I have a Canvas(oldcanvas) whose child is a Panel [and is the only child].

Now i want to drag and drop that panel on to someother canvas(newcanvas).

But by using newcanvas.addChild(oldcanvas.getChild(0)) is not working.

I am able to add the complete oldcanvas to the newcanvas but not able to get the child i.e the panel inside that.

Is there any solution for this??

Thanks