# as2ts **Repository Path**: netwan/as2ts ## Basic Information - **Project Name**: as2ts - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-03-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README AS2TS ===== Convert `ActionScript 3` to `TypeScript` using pure HTML5. Try it: --- http://www.nshen.net/as2ts/ or $npm i as2ts-cli -g $as2ts -h Usage: as2ts [options] --help, -h Displays help information about this script 'as2ts -h' or 'as2ts --help' --output, -o Defines an output filename for script 'script --output=file.ts file.as' or 'script -o file.ts file.as' Conversion: --- - `Boolean` to `boolean` - `uint` / `int` / `Number` to `number` - `String` to `string` - `:*` to `:any` - `package` to `module` - comment out `import` statements ? - `public class` to `export class` - `public final class` to `export class` - `public interface` to `export interface` - `public function class_name(...):void` to `constructor(...)` - `internal` to `public` - `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` to `var` - `A as B` to ` A` - `:Array` to `:any[]` - `:Vector. =` to `type[] =` - `:Vector.;` to `type[];` - `: Vector. {` to `type[] {` - `new Vector.(7,true)` to `[]` - `new [1,2,3]` to `[1,2,3]` - `Vector.([1, 2, 3])` to `[1, 2, 3]` - `trace` to `console.log` Contact me: --- nshen121[at]gmail.com