AS3:导出一个影片剪辑或帆布的SWF [英] AS3: Export a MovieClip or Canvas to swf

查看:199
本文介绍了AS3:导出一个影片剪辑或帆布的SWF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,用户可以编辑一个简单的贺卡,应该能够将其发送给其他用户。 我们通过导出到一个图形文件,并与一些服务器脚本发送目前正在做的。

I'm having an app where the user can edit a simple greeting card and should be able to send it to another user. We are currently doing it by exporting to a graphic file and sending with some server script.

现在 - 我们找到了需要的卡中导出为SWF。 此卡基本上是一个(Flex的)帆布存有图像和标签。

Now - we found a need to export that card to swf. This card is basically a (Flex) Canvas holding some images and labels.

你说什么?会是这样呢? 任何帮助将AP preciated。

What do you say? Can that be done? Any help will be appreciated.

谢谢!

推荐答案

深拷贝MovieClip对象为ByteArray和转储到一个文件中。

Deep copy the MovieClip object to a ByteArray and dump it to a file.

var buffer:ByteArray = new ByteArray();
buffer.writeObject(MOVIE_CLIP_HERE);
buffer.position = 0;
buffer.writeBytes(...);

这篇关于AS3:导出一个影片剪辑或帆布的SWF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆