> Oh by the way: Some JavaScript version do not support exceptions and/or
> a lot of other constructs - is there a JSVersion flag in haXe?
haXe is ensured to work with current generation of browsers JS engines
(IE6/7, Firefox, Safari, Opera). In general what you would do to ensure
cross-browser compatibility is to define a small class that wrap the
things in an abstract way :
function setColor( rgb : Int ) {
if( js.Lib.isIE )
....
else
....
}
The advantage over JS is that you don't have to manually manage a lot of
small includes (or several huge ones like in other JS frameworks). All
the classes needed - and only these - are generated into one single .js
file.
Nicolas
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org