deltaluca

Untitled

Apr 29th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. MainHx.hx:
  2.  
  3. class MainHx {
  4. static function main() { throw "hello world!"; }
  5. }
  6.  
  7. haxe -main MainHx -swf hx.swc
  8.  
  9. Main.as:
  10.  
  11. package {
  12. import flash.display.Sprite;
  13. public class Main extends Sprite {
  14. MainHx.main();
  15. }
  16. }
  17.  
  18. mxmlc Main.as --include-libraries hx.swc --static-link-runtime-shared-libraries
  19.  
  20. debugflashplayer Main.swf
  21.  
  22. An ActionScript error has occurred:
  23. hello world!
  24. at MainHx$/main()
  25. at Main()
Advertisement
Add Comment
Please, Sign In to add comment