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

Posted on 2006-03-21
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 ?

Question by:Donelson
    LVL 34

    Accepted Solution

    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.



    Author Comment

    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 ?

    LVL 34

    Expert Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now