A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: does unloadMovie unload mc's that are done loading?

Threaded View

  1. #1
    Junior Member
    Join Date
    Nov 2003
    Posts
    13

    does unloadMovie unload mc's that are done loading?

    I am loading a number of swf's into empty movie clips. They are quite large. If the user wants to abort this Flash Movie (playing within a browser) I want to clean up by unloading all the movies. Will my unload function (below) kill all movie clips even if they have not completely loaded?

    Thanks in advance!

    var iPageStart = 0;
    for(var i = _root.iPageStart; i < n; i++) {
    mc = _root.createEmptyMovieClip("movie" + i, i);
    mc._x = 0;
    mc._y = 102;
    mc.loadMovie("oronite-scrollText-" + i + ".swf");
    }
    //fired from an exit button
    function unloadAll(){
    iPageStart = 0;
    for(var i = _root.iPageStart; i < n; i++) {
    _root["movie"+i].unloadMovie();
    }
    return true;
    }
    Last edited by marco_polo7000; 10-15-2004 at 02:43 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center