[haXe] best strategy to port an existing js library

picnic bitvolt at gmail.com
Fri Dec 7 12:00:44 CET 2007


hi
what is best strategy to port an existing js library? How is
encapsulation done, e.g.  for an js class in a separate file:

-------------HelloClass.js------------------
function HelloClass(){
    var m_text = "Hello World";
    this.ShowText = DisplayText;
   function DisplayText(){
        alert( m_text );
        return;}}
--------------------------------------------------

i guess there should be some kind of a loader function in haxe.js

thanks
picnic



More information about the Haxe mailing list