Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

removeChild...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rahimhaji - 21 Jul 2008 13:42 GMT
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 :)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.