AS3 to Generate Dynamic SWF?

后端 未结 4 1779
隐瞒了意图╮
隐瞒了意图╮ 2021-01-17 01:56

Is it possible, using AS3, to programmatically generate a .swf file? What my little app does is load a bunch of images, using FileReference, now I want to compile them into

相关标签:
4条回答
  • 2021-01-17 02:14

    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.

    0 讨论(0)
  • 2021-01-17 02:19

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

    0 讨论(0)
  • 2021-01-17 02:23

    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.

    0 讨论(0)
  • 2021-01-17 02:26

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

    0 讨论(0)
提交回复
热议问题