Código PHP:
function capture(nr)
{
snapshot = new BitmapData(output_vid._width, output_vid._height);
//draw the current state of the Video object into
//the bitmap object with no transformations applied
snapshot.draw(output_vid,new Matrix());
var t:MovieClip = createEmptyMovieClip("bitmap_mc", 1);
t._x = 237;
t._y = 20;
t._xscale = t._yscale = 50;
//display the specified bitmap object inside the movie clip
t.attachBitmap(snapshot,1);
var filterArray = new Array(myFilters[nr]);
t.filters = filterArray;
attachMovie("print_but","bot",100,{_x:t._x + t._width + 50, _y:t._y + t._height / 2});
}