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

    LoadMovie/Reloading Problem

      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());

      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});