Posts Tagged html5

one application, two applications platforms

I wanted to try out a side-by-side of Haxe generating Javascript+Canvas versus Flash when I came across OctalJam’s post.

This method is really clean:

I modified my demo to add:

#if js
    neash.Lib.Init( "Container", 214, 50 );

and a similar wrapper around “flash.Lib.current.loaderInfo.parameters.scale”

The side-by-side shows they look identical:

Haxe let’s you write the same application and deploy it via flash or HTML 5. How cool is that?


Leave a Comment