/ Published in: ActionScript 3
Easy little script to grab the current frame's BitmapData from a Video()
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Grab the Frame from the Video() _vidBitmapHolder = new BitmapData(_screenWidth, _screenHeight, false, 0x000000); _vidBitmapHolder.draw(videoFile); // draw the Video() Object // Extra - Turn it into a BitmapMaterial for Papervision3D _tempVideoScreen = new BitmapMaterial(_vidBitmapHolder, false); // Create the BitmapMaterial
URL: http://www.destroyyourcomputer.com