4 Replies Latest reply on Aug 1, 2010 9:58 PM by Harry Kunz

    Bitmap data can't draw MC with FLV

    Harry Kunz Level 4

      I've created a prototype that will copy the pixel data from a movie clip then create a JPG image from it via PHP. It works perfectly. But when the MovieClip (called mcImage) contains a Video Object loaded with a streamed FLV, it won't copy the pixel data to the Bitmap object. The image generated is white. Here's a sample code:

       

      var oBitmap:BitmapData = new BitmapData(nW, nH, true);

      var oMatrix = new Matrix();

      var oColorTrans:ColorTransform = new ColorTransform();

      var oRect:Rectangle = new Rectangle(0, 0, nW, nH);

      oMatrix.translate(-nX, -nY);

      oBitmap.draw(mcImage, oMatrix, oColorTrans, 1, oRect);

       

      Is there something i am missing?