I notice that you don't have to removeChild a DisplayObject from it's parent before addChilding it to another container. If you just addChild it to the second container, it will automatically be removed from its current parent first. Is there any point to doing removeChild first if you're just going to addChild it someplace else right after?
AS3: Need to removeChild before addChild?
92 views Asked by BladePoint At
1
No, there is no point in doing
removeChild()first. The documentation clearly describes this behavior:Adding a redundant call to
removeChild()only bloats the code.