3 Replies Latest reply on Jun 7, 2011 11:07 AM by Ned Murphy

    mvCL.onLoadInit = function()

    Ron Colmen Level 2

      I'm loading several images using loadClip() in frame 1. How can I tell this code to move to frame 5 after all images are complete loading.

      I believe this is not the best way to do this. Please suggest if there is a better way to do this.

       

      var mvC1:MovieClipLoader = new MovieClipLoader();

      var mvC2:MovieClipLoader = new MovieClipLoader();

      var mvC3:MovieClipLoader = new MovieClipLoader();

      var mvC4:MovieClipLoader = new MovieClipLoader();

      var mvCL:Object = new Object();

      mvCL.onLoadProgress = function(targe,loade,tota) {

      loader.percents.text = Math.round((loade/tota) * 100)

      }

      mvCL.onLoadInit = function() {

      }

       

      mvC1.addListener(mvCL);

      mvC2.addListener(mvCL);

      mvC3.addListener(mvCL);

      mvC4.addListener(mvCL);

       

      mvC1.loadClip("http://www.web.com/photos/photo1.jpg", _root.placeholder_mc1);

      mvC2.loadClip("http://www.web.com/photos/photo2.jpg", _root.placeholder_mc2);

      mvC3.loadClip("http://www.web.com/photos/photo3.jpg", _root.placeholder_mc3);

      mvC4.loadClip("http://www.web.com/photos/photo4.jpg", _root.placeholder_mc4);