13 Replies Latest reply on May 19, 2007 2:44 PM by kglad

    screenshots from external swfs

    lhgravendeel
      How can i draw a movieclip that contains an external swf onto a BitmapData variable?
      I'm loading the movieclip with:
      moviecontainer=_root.createEmptyMovieClip("moviecontainer",10);
      moviecontainer.loadMovie("pacman.swf",0);

      Then i initialise the BitmapData var with:
      var snap:BitmapData = new BitmapData(Math.floor(nwidth), Math.floor(nheight),false);

      When a button is pressed i try this:
      snap.draw(moviecontainer,new Matrix());

      I expected the BitmapData snap to contain a screenshot from the external swf pacman.swf, but it doesn't.
      Does anyone know what i'm doing wrong?