Hi friends,
iam using removeChild command.
my coding is
mas.removeChild(curItem);
iam creating new movie clip (from library) and adding it to another movie clip
at stage named as mas.
when iam trying to remove the movie clip curItem, iam getting the following
error:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the
caller.
at flash.display::DisplayObjectContainer/removeChild()
Any help!
Thanks and advance,
rahimhaji[b]Text[/b]
rahimhaji - 22 Jul 2008 08:02 GMT
any friends can help me to remove the movieclip? i need to do the garbage cleaning before restarting the applicaiton?
pls answer my previsous forum removeChild...
regards,
rahimhaji
Avaloh - 22 Jul 2008 09:51 GMT
Hi,
garbage system is different from olders versions, check google.
Your problem is, that you are removing child from parent, what do NOT have
that child. Make sure, that you are calling removeChild on the parent of child
you want to remove. if you have link to the object you want to delete, youse
this: curitem.parent.removeChild(curitem);
Good Luck :)