AS3到JS编译器编译器、JS

2023-09-08 13:41:54 作者:你像晚风.

我迷迷糊糊accroos AS3的到JS编译 Jangaroo ,它看起来像它可能是一个有用的工具,因为它支持很多的事情,我喜欢AS3。

I stumbled accroos the AS3 to JS compiler Jangaroo, which looks like it could be a useful tool since it supports a lot of things I like about AS3.

是否还有其他这样的编译器? 有另一种语言,我可以 学习,编译为JS,那就是 AS3样? Are there any other such compilers? Is there another language I could learn, that compiles to JS, that is AS3 like?

推荐答案

HAXE

在介绍页面:

haXe的(发音为十六进制)是一个开放   源的编程语言。

haXe (pronounced as hex) is an open source programming language.

虽然大多数其他语言绑定   以自己的平台(Java来了   JVM,C#中的.Net,ActionScript将   Flash播放器),haXe的是一个多   语言。

While most other languages are bound to their own platform (Java to the JVM, C# to .Net, ActionScript to the Flash Player), haXe is a multiplatform language.

这意味着你可以使用haXe的来   针对以下平台:

It means that you can use haXe to target the following platforms :

JavaScript的:你可以编译haXe的   计划到一个.js文件。您可以   访问类型的浏览器的DOM API使用   自动完成的支持,以及所有的   相关性是在解析   编译时间。

Javascript : You can compile a haXe program to a single .js file. You can access the typed browser DOM APIs with autocompletion support, and all the dependencies are resolved at compilation time.

闪存:您可以编辑haXe的程序   到.swf文件。 haXe的可以编译   闪存播放器6至10,无论是   老的Flash< 8 API或最新   AS3 / FLASH9 + API。 haXe的提供了非常不错的   性能和语言功能   开发Flash内容。

Flash : You can compile a haXe program to a .swf file. haXe can compile for Flash Players 6 to 10, with either "old" Flash<8 API or newest AS3/Flash9+ API. haXe offers very good performance and language features to develop Flash content.

NekoVM:您可以编辑haXe的   程序NekoVM字节code。这可   用于服务器端编程   如动态网页(使用   mod_neko为Apache),也为   命令行或桌面应用程序,   由于NekoVM可以是嵌入式的和   扩展与一些其它的DLL。

NekoVM : You can compile a haXe program to NekoVM bytecode. This can be used for server-side programming such as dynamic webpages (using mod_neko for Apache) and also for commandline or desktop applications, since the NekoVM can be embedded and extended with some other DLL.

PHP:你可以编译haXe的程序   到PHP文件。这使您可以使用   高水平的严格类型语言   如haXe的同时保持充分   与现有的兼容性   服务器平台和库。

PHP : You can compile a haXe program to .php files. This enable you to use a high level strictly-typed language such as haXe while keeping full compatibility with your existing server platform and libraries.

C ++:你现在可以生成C ++ code   从haXe的来源$ C ​​$ C,与   所需的Makefile文件。这是很   用于创建本机有用   应用中,例如用于iPhone   发展。

C++ : You can now generate C++ code from your haXe source code, with the required Makefiles. This is very useful for creating native applications, for instance in iPhone development.

也有可能您感兴趣的: Haxer ,一个Java项目中,我写道,帮助转换AS3 code到haXe的$ C $℃。这是不完整的,但它可以让你在把你的code一个良好的开端。

Also of possible interest to you: Haxer, a java project i wrote that helps convert AS3 code to haXe code. It is not complete, but it gives you a good start in converting your code.