hello,
i'm totally new to flash and action script, here some action script code, for capturing images from webcam (from here):
var cam:Camera = Camera.getCamera();
var video:Video = new Video(640,480);
video.attachCamera(cam);
video.x = 20;
video.y = 20;
addChild(video);
import flash.display.Bitmap;
import flash.display.BitmapData;
var bitmapData:BitmapData = new BitmapData(video.width,video.height);
var bitmap:Bitmap = new Bitmap(bitmapData);
bitmap.x = 360;
bitmap.y = 20;
addChild(bitmap);
capture_mc.buttonMode = true;
capture_mc.addEventListener(MouseEvent.CLICK,captureImage);
function captureImage(e:MouseEvent):void {
bitmapData.draw(video);
}
i've googled a bit, and found some information about flex sdk, and it's command-line tool for compiling .as to .swf (./bin/mxmlc
), but any information about converting .fla to .swf in linux!
thanks for your attention!