Frame 1
de.popforge.bitmap.Shape.setContainer(this.createEmptyMovieClip("shapes", 10000));
var origin = (new flash.geom.Point());
var camera = Camera.get();
camera.setQuality(0, 100);
cam.attachVideo(camera);
var x1 = (new flash.geom.Matrix());
var camout = (new flash.display.BitmapData(160, 120, false, 0));
var buffer = (new flash.display.BitmapData(160, 120, false, 0));
var motion = (new flash.display.BitmapData(160, 120, false, 0));
var output = (new flash.display.BitmapData(160, 120, true, 0));
var source = (new flash.display.BitmapData(160, 120, false, 0));
var camClip = this.createEmptyMovieClip("camClip", 0);
camClip._x = 48;
camClip._y = 68;
camClip.attachBitmap(source, 0);
var freeze = (new flash.filters.ConvolutionFilter(1, 1, [0.96], 1, -4));
onEnterFrame = function () {
camout.draw(cam, x1);
motion.copyPixels(camout, camout.rectangle, origin);
motion.draw(buffer, x1, null, "difference");
source.threshold(motion, motion.rectangle, origin, ">", 4280427042, 4294967295, 4294967295, false);
source.applyFilter(source, source.rectangle, origin, freeze);
buffer.copyPixels(camout, camout.rectangle, origin);
};
Symbol 2 MovieClip [__Packages.de.popforge.bitmap.Shape] Frame 0
class de.popforge.bitmap.Shape extends MovieClip
{
static var container;
function Shape () {
super();
}
static function setContainer(container) {
de.popforge.bitmap.Shape.container = container;
Object.registerClass(id, de.popforge.bitmap.Shape);
}
static function get() {
if (container == undefined) {
return(null);
}
var _local1 = container.getNextHighestDepth();
return(de.popforge.bitmap.Shape(container.attachMovie(id, _local1.toString(), _local1)));
}
static var id = "__Packages.de.popforge.bitmap.Shape";
}