Convert AS3 sources to their Haxe equivalent
of if(number)
array.join("\n")
var cls : Class = Object(this).constructor as Class
var some : Some = new someType() as Class
some || = new Some()
@:allow
position in the order of access modifierswhile
instead of for
for proper iteration variable modificationdelete
Dictionary keysReflect.deleteField(dynamic, fieldName)
instead of delete object[fieldname]
as3hx.Compat.Regex::exec
instead of RegExp::exec
as3hx.Compat.FLOAT_MAX
instead of Number.MAX_VALUE
as3hx.Compat.FLOAT_MIN
instead of Number.MIN_VALUE
as3hx.Compat.INT_MAX
instead of int.MAX_VALUE
as3hx.Compat.INT_MIN
instead of int.MIN_VALUE
as3hx.Compat.parseFloat
instead parseFloat
as3hx.Compat.parseInt
instead parseInt
as3hx.Compat.arraySplice(array, position, length, args)
instead of array.splice(position, length, args)
Reflect.callMethod(null, function, args)
instead of function.apply(null, args)
Reflect.callMethod(null, function, [arg0, arg1])
instead of function.call(null, arg0, args1)