Skip to content

Instantly share code, notes, and snippets.

@deltaluca
Created April 30, 2013 10:43
Show Gist options
  • Save deltaluca/5487938 to your computer and use it in GitHub Desktop.
Save deltaluca/5487938 to your computer and use it in GitHub Desktop.
test/Test.hx:
-------------
package test;
class Test {
public static function test() {
throw "Test";
}
}
haxe -swf test.swc --macro "include('test')"
Main.as:
--------
package {
import flash.display.Sprite;
import test.Test;
public class Main extends Sprite {
public function Main() {
Test.test();
}
}
}
mxmlc Main.as --include-libraries test.swc --static-link-runtime-shared-libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment