javascript - AS3 到 JS 编译器

标签 javascript actionscript-3

我偶然发现了 AS3 到 JS 编译器 Jangaroo ,看起来它可能是一个有用的工具,因为它支持很多我喜欢 AS3 的东西。

  • 还有其他这样的编译器吗?
  • 有没有我会的另一种语言 学习,编译成JS,也就是 AS3 之类的?

最佳答案

Haxe

从介绍页面:

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

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.

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

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.

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 : 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 : 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++ : 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 代码转换为 Haxe 代码。它并不完整,但它为您转换代码提供了一个良好的开端。

关于javascript - AS3 到 JS 编译器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3863454/

相关文章:

javascript - AngularJS ui-select,如何初始化多选值?

javascript - React Native DrawerLayoutAndroid 和 Navigator 之间的冲突

javascript - react 类型错误 : Cannot read property 'type1' of undefined

apache-flex - Flash 和 Flex 中的线程

windows - AS3 中的 LocalConnections 如何通信?

actionscript-3 - As3 FileReference 下载动态 url

javascript - 为什么输入没有改变颜色?

javascript - 如何使用 Three.js r71 合并两个几何图形或网格?

actionscript-3 - 如何检查swf在AS3中是否已经失焦

Flash CS AS3 OOP 软件架构