AS3 to TypeScript Convertor