loadSound (...) - does killing the movieClip kill the download ?

If I have a SWF loaded on the stage, and the visitor clicks somewhere else and I want that movie to go away, do I just kill the movieClip like -

   delete theMovieClip;

and will that stop the download of images and sounds and child processes which were being loaded/run by the movieClip ?

Or do I have to delete each child object separately ?

DonelsonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aneesh ChopraCommented:
Yes,
deleting a movieClip also removes all child processes automatically...

But you can delete the movieClip using "delete MovieClipInstanceName>"

only if that movieClip is created at runtime using createEmptyMovieClip or attachMovieClip...


if your movieClip is not created at runtime and you still want to delete that movieClip..... you can also do this, using a tricky code....

----------
MovieClipInstanceName.loadMovie("xx"); //
----------

here I have loaded a dummy source in the movieClip, xx is actually not available physically, but it will delete the all contents of the MovieClipInstanceName.

Rgds
Aneesh

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DonelsonAuthor Commented:
Very good!

Yes, the movie is created (loaded) at runtime via MovieClipLoader, so just deleting is okay.

It's good to know the Hack as well. I assume that hack also stops any child processes/loads/etc ?

0
Aneesh ChopraCommented:
yes, hack all stops any child processes/loads/
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.