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 |
package com.example.components { public class MyClass { public function MyClass() {} } }
|
goog.provide('com.example.components.MyClass'); /** * @constructor */ com.example.components.MyClass = function() {};
|