ok, so you can write all the contents of swf like this:
- (, DisplayObject, IBitmapDrawable), , ( "" ), ENTER_FRAME ( fps), BitmapData, BitmapData.draw(). BitmapData FLV encode library, , addFrame() ( ... ) ! , FLV-, " " , swf! , ! , lib .
private function startCapturing():void{
flvEncoder.start();
var timer:Timer = new Timer(1000/15);
timer.addEventListener(TimerEvent.Timer, onTimer);
timer.start();
}
private function onTimer(event:TimerEvent):void{
var screenCap:BitmapData = new BitmapData(container.width, container.height);
screenCap.draw(container);
flvEncoder.addFrame(screenCap);
}
source
share