Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Compiling an .abc containing multiple scripts

syg edited this page Mar 29, 2012 · 1 revision

Make sure you have a copy of asc.jar, then:

java -ea -DAS3 -DAVMPLUS -classpath /PATH/TO/asc.jar macromedia.asc.embedding.ScriptCompiler -import /PATH/TO/builtin.abc -out <outfile> script1.as ... scriptN.as

This will generate 3 files:

  • <outfile>.abc
  • <outfile>.cpp
  • <outfile>.h

The .cpp and .h files are if you need to embed the ABC as a binary blob in your C/C++ program, and can usually be ignored.