1 Reply Latest reply on May 21, 2007 12:33 PM by MotionMaker

    LoadMovie/Reloading Problem

    Jay1347
      I'm using the following code to load online random images, jpg files. It works for the first time, but it does not work when I refresh(reload) the browser.The swf file and jpg files are in the same directory.Please help.:

      onLoad = function () {
      var i = random(6)+1;
      this.createEmptyMovieClip("main", this.getNextHighestDepth());
      this.main._x=480;
      this.main._y=0;
      _root.main.loadMovie("1.jpg");

      myInterval = setInterval(shansi, 9000);

      function shansi() {
      var i = random(10)+1;
      _root.main.loadMovie(i+".jpg", this.getNextHighestDepth());
      import mx.transitions.*;
      import mx.transitions.easing.*;
      TransitionManager.start(main, {type:Fade, direction:Transition.IN, duration:3});


      }
      };