?
Solved

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

Posted on 2006-03-21
3
Medium Priority
?
165 Views
Last Modified: 2010-04-03
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 ?

0
Comment
Question by:Donelson
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 2000 total points
ID: 16257322
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
 

Author Comment

by:Donelson
ID: 16257467
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
 
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 16257885
yes, hack all stops any child processes/loads/
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to how to record live broadcast.
Suggested Courses
Course of the Month15 days, 18 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question