如何学习haXe的作为一名JavaScript开发 [英] How to learn haxe as a javascript developer

查看:166
本文介绍了如何学习haXe的作为一名JavaScript开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用JS的样3年来一直在。我想用openfl制作移动应用程序。但是,我不知道haXe的。而且我不知道其他编程语言要么。但是,我很舒服的学习班,继承等...

I have been using js for like 3 years. I want to use openfl for making mobile apps. However, i do not know haxe. And i don't know other programming languages either. However, i am comfortable in learning classes, inheritance, etc....

此外,到目前为止,从我已阅读,openfl比土坯空气在性能方面更好,你需要知道haXe的使用openfl。

Also, so far from what i have read, openfl is better than adobe air in terms of performance and you need to know haxe to use openfl.

所以,我怎么能上手。是否有良好的资源......似乎都朝着AS3开发者量身定做。

So how can i get started. Are there any good resources.. All seem to be tailored toward AS3 developers.

我是否需要了解闪光之前,我可以进入haXe的?

Do i need to understand flash before i can get into haxe?

推荐答案

HAXE和OpenFL一般都专为Flash开发以获取更高级的功能和更高的性能。

Haxe and OpenFL in general ARE tailored for Flash developer to access more advanced features and improved performance.

而在NME的时间大多数类有相同的名称为Flash,但不同的封装。现在,OpenFL具有相同的包,类名,方法等。

While in time of NME most classes had same name as Flash, but a different package. Now, OpenFL has the same packages, class names, methods etc.

HAXE有一个非常相似的语法AS3(因此类似于所有的ECMAScript的语言),只有少数的区别是:

Haxe has a very similar syntax to AS3 (and therefore similar to all ECMAscript languages), the only few differences are:

  • 铸件
  • Contructors
  • For循环

和许多小的事情,像没有UINT的,数字是被称为浮动等,分号是强制性的。

and many minor things, like absence of uint, Number is known as Float etc, semicolon is mandatory.

随便看看的ActionScript 3,您就可以正好成HAXE发展没有问题。除了上面列出的差异也有初学者,中级开发者甚少差异。

Feel free to look into ActionScript 3, and you'll be able to just right into Haxe development with no problem. Except the differences listed above there are really few differences for beginner, mid-level developers.

在一般HAXE更丰富作为一种语言,但一些小的功能,是present在AS3但在HAXE丢失(例如:for循环,块和if语句没有标签)

In general Haxe is richer as a language, but as some small features that are present in as3 but missing in Haxe (e.g.: no labels for loops, blocks and if statements)

这篇关于如何学习haXe的作为一名JavaScript开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆