3 Replies Latest reply on Jun 3, 2011 6:29 AM by kglad

    loadClip() with onLoadError()

    narmathadevi

      In my application using loadClip() to load the multiple images and i am also using the onLoadError(). i have attached a movieclip inside of onLoadError(). so, whenever the loadClip() fails it will call the onLoadError() .But if multiple images loaded fails, the same number of time onLoadError() is called .so multiple movieclip is attached.My requirement is , once  if i get a onLoadError() the process of loadClip() should stop.

       

      Ex:

       

      for(var i=0;i<my_array.length;i++)

      {

              mc =_root.createEmptyMovieClip("mc"+i,_root.getNextHighestDepth());

              mcLoader.loadClip(my_array[i],mc);

      }

      objListener.onLoadError = function(Mc:MovieClip)

      {

          _root.attachMovie("alert_mc","msgMc",_root.getNextHighestDepth());

      }

      can any one help me...