0 Replies Latest reply on Jul 21, 2009 1:35 AM by Frankl71

    onLoadStart  - can't interrupt it?!

    Frankl71

      Hi,

       

      I have a script written in actionscript2 (Flash 8) that dynamically loads quite a few external images into my swf.

      It works quite nicely escept for one thing!  Once it starts to load images, I can't use any of the html links on the web page that the swf is embedded into until all of the images are loaded!

       

      I have put the code I think is relevant below.  Is there something I can do in the onLoadProgress or within the loop or anything else to stop this, or even something I can do with the html links?

       

      Apologies in advance for any crimes against actionscript I may have commited in the code!!!

      Thanks!

      a.

       

      function callThumbs() {
      _root.createEmptyMovieClip("container_mc",_root.getNextHighestDepth());
      container_mc._x = _root.gallery_x;
      container_mc._y = _root.gallery_y;

      var clipLoader = new MovieClipLoader();
      var preloader = new Object();
      clipLoader.addListener(preloader);

      for (i=0; i<myImagesTotal; i++) {
      thumbURL = myImages[i].attributes.thumb_url;
      myThumb_mc = container_mc.createEmptyMovieClip(i, container_mc.getNextHighestDepth() );
      myThumb_mc._x = test;
      test += parseInt(myImages[i].attributes.xwidth);
      lastwidth=parseInt(myImages[i].attributes.xwidth);
      test+=10;
      clipLoader.loadClip("/thumbs/"+thumbURL,myThumb_mc);

       

      preloader.onLoadStart = function(target) {

      target.createEmptyMovieClip("grid", target.getNextHighestDepth());
      var my_mcl:MovieClipLoader = new MovieClipLoader();

      my_mcl.loadClip("/images/timer.swf", target.grid);
      };

       

      preloader.onLoadProgress = function(target, loadedBytes, totalBytes) {

      // used to show % of image upload but replaced with basic timer swf loaded in onLoadStart

      };

       

      //preloader.onLoadComplete=function(target){
      preloader.onLoadInit=function(target){
      target.grid.removeMovieClip(); 
      new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
      }