javascript – AS3到JS编译器

前端之家收集整理的这篇文章主要介绍了javascript – AS3到JS编译器前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我偶然发现了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相关文章