[haXe] a haxe extern generator

Niel Drummond niel at cyanescent.co.uk
Sun Feb 18 14:22:19 CET 2007


I have fixed the problem, thanks Nicolas and Julien for your help. I 
have got the AsWing tutorial to work using haxe, as the differences are 
really semantic. I hope to put up the results on my site when time permits.

Nicolas, you were correct that reproducing static members up the class 
heirarchy is an error. The problem in the tutorial was caused by calling 
the static variables JButton.ON_PRESS, which is valid in actionscript, 
because it will retrieve the super declaration Componont.ON_PRESS, but 
in haxe you need to call the super static member directly. So in my 
earlier post you would change the addEventListener call to read:
 
               jbutton1.addEventListener (Component.ON_PRESS, 
myWindow.createEast, myWindow);

rather than

               jbutton1.addEventListener (JButton.ON_PRESS, 
myWindow.createEast, myWindow);

I am quite happy now that things are more or less working.

kind regards

- Niel



More information about the Haxe mailing list