Frame 1
var cam = Camera.get();
cam.setMode(240, 160, 30);
videoClip.video.attachVideo(cam);
var buffer = new Array();
var i = 0;
while (i < 160) {
buffer[i] = new flash.display.BitmapData(240, 160, false, 0);
i++;
}
var output = (new flash.display.BitmapData(240, 160, false, 0));
var clip = (new flash.geom.Rectangle(0, 0, 240, 1));
onEnterFrame = function () {
buffer[buffer.length - 1].draw(videoClip);
buffer.unshift(buffer.pop());
var _local1 = buffer.length;
while (_local1-- , _local1 > -1) {
clip.y = _local1;
output.copyPixels(buffer[_local1], clip, clip.topLeft);
}
};
var outputClip = createEmptyMovieClip("outputClip", 0);
outputClip.attachBitmap(output, 0);