1 Reply Latest reply on May 8, 2006 4:55 AM by Newsgroup_User

    problem with loadmovie() method

    kalyanchakri
      hi,

      when i used loadmovie method for loading images it's working fine. when i use that one in printing using printjob() method the images are not displayed in print outs. plz give me soltuion for this.the code of that ia as follows
      var path = pupilInfo[pg].pupilphoto; // here i am getting that image path
      myPage.createEmptyMovieClip("loadpic", myPage.getNextHighestDepth()); // here my page is my print movie
      loadpic.loadMovie(path);
        • 1. Re: problem with loadmovie() method
          Level 7
          kalyanchakri wrote:

          > hi,
          >
          > when i used loadmovie method for loading images it's working fine. when i use
          > that one in printing using printjob() method the images are not displayed in
          > print outs. plz give me soltuion for this.the code of that ia as follows
          > var path = pupilInfo.pupilphoto; // here i am getting that image path
          > myPage.createEmptyMovieClip("loadpic", myPage.getNextHighestDepth()); // here
          > my page is my print movie
          > loadpic.loadMovie(path);

          it could be when you issue the send() method, the image isn't still loaded

          when loading external swf/images in Flash, be aware you need to be sure
          they're loaded before printing. so, instead the loadMovie method, use
          the MovieClipLoader class that allows you set callbacks to get info
          about the elements being loaded. try something like this:

          function loadPhoto(fileName) {
          var imgLoader:MovieClipLoader = new MovieClipLoader();
          var loaderListner bject = new Object();
          loaderListner.onLoadInit = function() {
          printFunction();
          };
          imgLoader.addListener(loaderListner);
          imgLoader.loadClip(fileName+".jpg", MCinstance);
          }