开发者

Is it possible to create video file from BitmapDatas in Flash?

Basically I'd like to know if there are any libraries out there 开发者_如何学编程that lets me create a video file in the flash runtime. I know such a process would take a lot of resources, but I would still like to know if it was possible?

I would guess it could work like just passing it a bitmapdata for each frame.


Try this. Usage:

var myWriter:SimpleFlvWriter = SimpleFlvWriter.getInstance();
myWriter.createFile(myFile, 320,240, 30, 120);
myWriter.saveFrame( myBitmapData1 );
myWriter.saveFrame( myBitmapData2 );
myWriter.saveFrame( myBitmapData3 ); // etc.
myWriter.closeFile();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜