/ Published in: ActionScript 3
Pass an Objects instance name and its Parent Object to removeChild from the display list.
Expand |
Embed | Plain Text
function removeChildWithRef(spriteName:String, parentObj:*){ var t:DisplayObject = parentObj.getChildByName(spriteName); parentObj.removeChild(t); }
You need to login to post a comment.
