从动态内容创建视频电影
我有一个应用程序(actionscript),它显示以 xml 编写的动态内容的幻灯片。幻灯片在 flashplayer 中运行。现在我被要求将内容显示为视频文件格式。可以做这样的事吗?
谢谢
I have an application (actionscript) that displayes a slideshow from dynamic content written in xml. The slideshow runs in flashplayer. Now i have been asked to display the content as a video file format. Is it possible to do such a thing?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要回答您的问题,
如果我理解正确,并且您想要创建时间线或脚本动画,并让 as3 记录出现的内容,那么答案是肯定的。
下面是一个很好的例子:
http://www.zeropointnine.com/blog/updated-flv-encoder- alchem/
实际上,您所要做的就是使所有动作和子动画发生在单个 Sprite 或 MovieClip 内,然后在每一帧之后,复制该对象在该帧中出现的像素,然后存储这些像素在 ByteArray 甚至 BitmapData 的 Vector 数组中。
话虽这么说,一旦你有了数据,你就需要学习编码;然而,有大量的库可以帮助您避免学习文件规范并从头开始制作编码器。
希望这有帮助。
To answer Your Question,
If I understand you correctly, and you want to create either timeline or scripted animation, and have as3 record what appears, then the answer is Yes.
Below is a great example:
http://www.zeropointnine.com/blog/updated-flv-encoder-alchem/
Really, all you have to do is to make all your actions and child animations happen inside a single Sprite or MovieClip, and then after every frame, copy the pixels from that object as it appears for that frame, and store those pixel in a ByteArray or even a Vector array of BitmapData.
That being said, once you have the data you will need to learn about encoding; yet, there are a ton of libraries out there that can help you avoid having learn a file spec and make an encoder from scratch.
Hope this helps.