Created
April 30, 2013 10:43
-
-
Save deltaluca/5487938 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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