hyperandroid / CAAT

Canvas Advanced Animation Toolkit
hyperandroid.github.com/CAAT
MIT License
727 stars 117 forks source link

uncaught exception: adding to a container an element with parent. #168

Closed satya4satyanm closed 10 years ago

satya4satyanm commented 10 years ago

Please help

I am getting this error uncaught exception: adding to a container an element with parent.

fil0zo commented 10 years ago

i think you try to make addChild on an Actor that already has a parent, try to use setParent method setParent(newActor parent) or setParent(null) and then make addChild

fil0zo commented 10 years ago

update.. you can also use removeChild method on the actorContainer so you remove all child's reference about his parents

satya4satyanm commented 10 years ago

Got the solution Thank you