Targeting Tamarin
You are viewing an old version of this entry, click here to see latest version.
Using the Tamarin Target
First you need to download and compile tamarin for your system, more information can be found here:
Tamarin Build Documentation
Builds : ftp://ftp.mozilla.org/pub/js/tamarin/builds/tamarin-redux/ (copy paste to your browser, this wiki is not up to it)
Then you need to modify the standard Boot file for the flash target.
replace std\flash9\Boot.hx with code found on this page Boot.hx
then you need to add a new System file in std\avm using code found here:
System.hx
now you can create a test Main, unfortunately it differs slightly from regular as it needs a name space.
@:ns("")@:native("IPL") class TamarinTest { public function new() { trace("hello cruel world from Haxe targeting avmshell! tamarin v"+System.getAvmplusVersion()); } public static function main() { var tt = new TamarinTest(); trace("goodbye cruel world! freeMem:"+System.freeMemory); } }
Then you can compile it
-main TamarinTest -swf9 tamarinTest.swf -D avmshell
Then you need to convert in to ABC using this file
abcdump.as
You can find some instruction here:
recent-tamarin-and-abc-tools
but Haxe community hopes to add Haxe specific instructions, or create a tool to make this simpler.
[ Please note this is work in progress based on an IRC conversation ]
The details of the IRC conversation
version #11682, modified 2011-10-24 23:17:42 by adnez