Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A table showing how each ActionScript language 'feature' is should be translated to Google Closure Tools assisted JavaScript by the FalconJS Compiler.

Test multi-
line

Description

ActionScript 'feature'

Javascript 'translation'

Test one line

Javascript

Simple Class definition

package com.example.components
{
public class MyClass
{
public function MyClass() {}
}
}

goog.provide('com.example.components.MyClass');

/**

  • @constructor
    */
    com.example.components.MyClass = function() {}; |