Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
A table showing how each ActionScript language 'feature' is should be translated to Google Closure Tools assisted JavaScript by the FalconJS Compiler.

...

Description

ActionScript

Javascript

Simple Class definition

Code Block
ActionScriptActionScript


{table}
{thead}{table-row}
{table-cell}Description{table-cell}{table-cell}ActionScript{table-cell}{table-cell}Javascript{table-cell}
{table-row}{thead}
{tbody}
{table-cell}Simple Class definition{table-cell}{table-cell}
{code:ActionScript} 
package com.example.components
{
public class MyClass
{
    public function MyClass() {}
}
}

|

Code Block
JavascriptJavascript
{code}{table-cell}{table-cell}
{code:Javascript}goog.provide('com.example.components.MyClass');
/**
 * @constructor
 */
com.example.components.MyClass = function() {};

...

{code}
{table-cell}
{tbody}
{table}