3 Replies Latest reply on Nov 16, 2006 9:31 PM by kglad

    Using MovieClip.onLoad

    dpaultaylor Level 1
      Hi

      I'm trying to load a dynamic image at a certain point in a timeline. I want to pause at the point the loadMovie is actioned and test for when the jpeg has loaded into the target movie clip before moving onto the next frame. I am using Flash MX and the code is as follows :-

      this.screenTop_mc.onLoad = function () {
      gotoAndPlay("reveal");
      }

      this.screenBottom_mc.loadMovie("PDT_scratch.jpg");
      this.screenTop_mc.loadMovie("PDT_reveal.jpg");

      stop();

      It seems simple but this does not work?