Jangaroo:把ActionScript编译为JavaScript

来源:互联网 发布:张予曦的淘宝店转让 编辑:程序博客网 时间:2024/06/07 00:29

Jangaroo是一个开源的工具,通过使用ActionScript3来编写高质量的JavaScript框架应用。为什么要用它?那是因为:

  • JavaScript programming in the large -
    Adopt ActionScript 3 language features like packages, classes and inheritance, interfaces, private members, and many more to create even large-scale client-side Web code, where you otherwise would have used JavaScript directly. This approach is extremely helpful when creating frameworks with explicit public APIs, but also for larger applications that use such frameworks.
  • Running ActionScript 3 code directly in the browser
    – You are implementing a Web project that must not rely on plugins and/or requires close integration into an HTML Web site, possibly already using some JavaScript framework. You want to reuse or build upon existing ActionScript 3 code (utility classes, frameworks like FlexUnit, custom code) as well as JavaScript APIs and code.

demo(请使用支持HTML5的浏览器观看):

  • http://www.jangaroo.net/files/examples/flash/box2d/
  • http://www.jangaroo.net/files/examples/flash/lines/
  • http://www.jangaron.net/jangaron0.6/jangaron.html

网址:http://www.jangaroo.net/home/