[osflash] IDE mon amour, the poll results.
Nicolas Cannasse
ncannasse at motion-twin.com
Tue Sep 5 03:47:20 EDT 2006
> 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
More information about the osflash
mailing list