(function(blah) : blah { ... })(this).__setFrameUpdateBounds(v) turns into function(blah) : blah { ... }(this).__setFrameUpdateBounds(v) after haxe -as3 command which fails to compile. ( and ) need to be there.