It works like a charm. Is there any way to save this bitmapdata to disk, as a JPEG or something?
thanks! > -----Original Message----- > From: Mike Mountain [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 03, 2006 12:16 PM > To: Flashcoders mailing list > Subject: RE: [Flashcoders] Taking a "screenshot" from a FLVPlayback > componentusing AS > > > Sorry, my mistake you don't actually need copyPixels if you're copying > from an MC, you can just use draw - something like this may help: > > [as] > > import flash.display.BitmapData; > import flash.geom.Rectangle; > import flash.geom.Matrix; > import flash.geom.ColorTransform; > // > cloneMC = function (mc, hld, xpos, ypos, lvl) { > var bitmapData_1:BitmapData = new BitmapData(mc._width, > mc._height, false, 0xFFFFFFFF); > // > var myMatrix:Matrix = new Matrix(); > //myMatrix.scale(4,1); > var myColorTransform:ColorTransform = new ColorTransform(.8, > 1.2, 0.2, 0.4, 0, 0, 0, 0) > var blendMode:String = "normal"; > var myRectangle:Rectangle = new Rectangle(0, 0, 100, 80); > var smooth:Boolean = true; > // > bitmapData_1.draw(mc, myMatrix, myColorTransform, blendMode, > null, smooth); > var holder:MovieClip = this.createEmptyMovieClip(hld, > this.getNextHighestDepth()); > holder.attachBitmap(bitmapData_1, lvl); > holder._x = xpos; > holder._y = ypos; > }; > > // cloneMC(test_mc, "holder", 300, 200, 1); > > [/as] > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Bart Zonneveld > > Sent: 03 May 2006 11:04 > > To: 'Flashcoders mailing list' > > Subject: RE: [Flashcoders] Taking a "screenshot" from a > > FLVPlayback componentusing AS > > > > Exactly what I was looking for. > > However, how can I get to the bitmap data of my FLVPlayback > component? > > > > thanks! > > > > > -----Original Message----- > > > From: Mike Mountain [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, May 03, 2006 11:57 AM > > > To: Flashcoders mailing list > > > Subject: RE: [Flashcoders] Taking a "screenshot" from a > FLVPlayback > > > componentusing AS > > > > > > > > > It's possible in Flash 8 using copyPixels (BitmapData.copyPixels > > > method) > > > > > > http://livedocs.macromedia.com/flash/8/main/00001948.html > > > > > > Hth > > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com