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 );
    neash.Lib.Run();
#end

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?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: