hi,
i built from source, below are some quick notes i had in trying to
convert modestmaps.
there were a lot of occurences of ":Number" still in teh code. i saw
you'd made a recent commit regarding that.
also, in a lot of cases, i had to add 'static' to variables defined at
the class level.
=====================
global search-replace Number => Float
class A extends Object = > class A
interface IMapProvider extends IEventDispatcher => interface
IMapProvider implements IEventDispatcher
flash.utils.getTimer => flash.utils.Timer
class MicrosoftHybridMapProvider
implements IMapProvider
extends AbstractMicrosoftMapProvider
=>
class MicrosoftHybridMapProvider
implements IMapProvider, /* COMMA */
extends AbstractMicrosoftMapProvider
change loops to:
for(i in 0...array.length)
with(sprite.graphics){
lineTo()...
etc.
}
=>
sprite.graphics.lineTo()
etc.
delete obj[key] => Reflect.deleteField(obj, key);
re getTimer, i'm not sure, but i think it's just a direct substitute.
let me know if i can clarify or help.
fwiw, i'm using haxe 2, linux, and built most recent as3tohaxe version
with ghc6.8+.
-brent
MMDEST=/tmp/mm/
HAXE=/usr/bin/haxe
A2H=/var/www/tinker/as3tohaxe/as3tohaxe
cd $MMDEST
rm -r hx_output
svn co http://modestmaps.mapstraction.com/svn/trunk/as3 $MMDEST/modestmaps
$A2H $MMDEST/modestmaps/lib/
cd $MMDEST/modestmaps/samples/as3/ModestMapsSample/
$A2H ModestMapsSample.as
cd hx_output
haxe -swf9 mapsample.swf -swf-version 9 -main ModestMapsSample -cp
$MMDEST/hx_output/$MMDEST/lib/
echo "file in ..."
echo $MMDEST/modestmaps/samples/as3/ModestMapsSample/hx_output/
I've uploaded a windows binary to the files section.