AS3 to Generate Dynamic SWF?

一世执手 提交于 2019-12-01 14:47:47

Take a look at this library, this allows you to create a .swf at runtime. https://github.com/claus/as3swf

It should be possible to do server side, by generating the relevant code and running the as3 compiler.

I haven't investigated the package thoroughly, but the As3Eval library seems to be doing what you're asking - realtime compilation of AS3 into executable bytecode (on the client with no server interaction). Check out the demo.

I'm not sure it would support image embedding - perhaps you could encode the image data as a base64 string in your dynamically built source code.

You could also use swfmill, a command-line tool to create SWF files from XML documents.

It's not well documented but for basic usages (such as creating asset libraries) you should find what you need.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!