Compiling a SWC - devboy/buildr_as3 GitHub Wiki

Compiling a swc doesn't differ that much from Compiling a SWF.

We need to specify compc as our compiler to output a swc.

compile.using :compc

And we just specify the Flex SDK we want to use, resulting in the following buildfile:

require "buildr/as3"

define "RedCircle" do

  compile.using :compc,
                :flexsdk => FlexSDK.new("4.5.0.20967")

end

To compile this project simply open the terminal, cd into your project directory and type buildr compile to start the compilation.

You can find the example project here.

⚠️ **GitHub.com Fallback** ⚠️