Convert ActionScript 3
to TypeScript
using pure HTML5.
Boolean
toboolean
uint
/int
/Number
tonumber
String
tostring
:*
to:any
package
tomodule
- comment out
import
statements ? public class
toexport class
public final class
toexport class
public interface
toexport interface
public function class_name(...):void
toconstructor(...)
internal
topublic
static (public|private|protected)
to(public|private|protected) static
(private|public|protected) var
to(private|public|protected)
(private|public|protected) const
to(private|public|protected)
(override) (private|public|protected) function
to(private|public|protected)
(private|public|protected) static var
to(private|public|protected) static
(private|public|protected) static const
to(private|public|protected) static
(private|public|protected) static function
to(private|public|protected) static
- local
const
tovar
A as B
to<B> A
:Array
to:any[]
:Vector.<type> =
totype[] =
:Vector.<type>;
totype[];
: Vector.<type> {
totype[] {
new Vector.<type>(7,true)
to[]
new <type>[1,2,3]
to[1,2,3]
Vector.<type>([1, 2, 3])
to[1, 2, 3]
trace
toconsole.log
nshen121[at]gmail.com