Corsaair / redtamarin

AS3 running on the command line / server side
http://redtamarin.com
Other
119 stars 23 forks source link

swfmake utility #192

Open zwetan opened 3 years ago

zwetan commented 3 years ago

Utility to stitch together .abc files into a SWF container.

With redshell you can create projectors by merging one file with the runtime, you can merge either one .as file or one .abc file or one .swf file

swfmake is a small utility to cover the need of combining different .abc files into one .swf, eg. you make a SWF of many ABC.

example: Let's say you're building a testing library that you will compile into testlib.abc and maybe by extension to testlib.swc

you want to make a command-line tool out of this library, a test binary and if you need to use other ABC libraries, like a prettylib.abc to display things pretty

you cannot merge two .abc files into that binary but just one

so you would need to use swfmake to combine both testlib.abc and prettylib.abc into test.swf then you can use something like projectormake to create your test binary out of test.swf

zwetan commented 3 years ago

Note that is utility is based out of https://github.com/Corsaair/redtamarin/blob/master/src/utils/swfmake.as

but the new sources will be found under build/swfmake/swfmake.as