/ Published in: ActionScript 3
Pass an Objects instance name and its Parent Object to removeChild from the display list.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function removeChildWithRef(spriteName:String, parentObj:*){ var t:DisplayObject = parentObj.getChildByName(spriteName); parentObj.removeChild(t); }