开发者

Flash - custom language instead of ActionScript

I recently heard of a language that gives the 开发者_如何学编程same functionality as ActionScript (creating flash SWF files) with a certain speed increase. The language was called something along the lines of 'hex'.

Does anyone have any idea what this language is?


Haxe

an open source toolkit based on a modern high level strictly typed programming language, a state-of-the-art light-speed cross-compiler, a complete cross-platform standard library, and ways to access to each platform's native capabilities. Learn More...


It's worth noting that you can use Haxe and AS3 together on a flash project, and while it would be better to use all Haxe it often make sense to use an existing library without converting it. I have used as3 libraries in Haxe flash projects and when on a large Air project written in AS3 I swapped a font parser written in as3 with a much better Haxe one that could parse more fonts and was written in away that I could improve it even more, the app couuld now import fonts on a mac/pc that would only normally work on a pc/mac. Using flashdevelop IDE to code Haxe and as3 it is very easy to mix and match. But Haxe's main advantage is that code written in generic haxe can be moved between platforms, so it is much easier to move a flash banner created in haxe flash to haxe javascipt, some view details may need to be adjusted but the logic, tween engines etc... could be the same. Then if I need to run a flash haxe game on Iphone I could use OpenFL ( c++ haxe ) with virtually no changes to my existing code. Really Haxe is a game changer, and one of the best languages you can use.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜