Bespoke App development for the Web and Devices

Add haXe to your toolset


06.03.10 Posted in AJAX, Actionscript, haXe, open source by admin

haXe is an amazing project.  I’ve been looking at it recently as an option for producing swfs that potentially perform better than ones produced with similar code written in AS3.  Even more interesting, however, is the ability to target more than one platform with the same code base.  There are several target platforms but the one that captures my attention at this moment is the Javascript target and the fact that existing Haxe libraries such as Physaxe can be used with the HTML5 Canvas element.

The Physaxe library contains a custom type called JsCanvas that acts as a wrapper for the Canvas element and it’s 2d drawing context.  JsCanvas shares the same method names as the graphics property belonging to display objects in Actionscript.  Compiler conditionals are then used in another class called FlashDraw to determine whether or not a member variable will be of type flash.display.Graphics or phx.JsCanvas.

It’s worth checking out.

Post to Twitter



One Response to “Add haXe to your toolset”

  1. [...] Add haXe to your toolset fboyle.com/blog/?p=38 – view page – cached Tweets about this link Topsy.Data.Twitter.User['fgl_joe'] = {“photo”:”http://a3.twimg.com/profile_images/448774703/JOSEPH_normal.jpg”,”url”:”http://twitter.com/fgl_joe”,”nick”:”fgl_joe”}; fgl_joe: “Add haXe to your toolset http://bit.ly/aYzQxR ” 25 minutes ago retweet Topsy.Data.Twitter.User['retrogamer4ever'] = {“photo”:”http://a3.twimg.com/profile_images/684591217/n541213474_526693_9355_normal.jpg”,”url”:”http://twitter.com/retrogamer4ever”,”nick”:”retrogamer4ever”}; retrogamer4everHighly Influential: “Add haXe to your toolset http://bit.ly/aYzQxR ” 25 minutes ago retweet Filter tweets [...]

Leave a Reply

You must be logged in to post a comment.

Twitter Updates
Mobile site
QR Code - scan to visit our mobile site