as3hx icon indicating copy to clipboard operation
as3hx copied to clipboard

Convert AS3 sources to their Haxe equivalent

Results 56 as3hx issues
Sort by recently updated
recently updated
newest added
trafficstars

While including function definitions is supported, as3hx does not seem to support including expressions (which mxmlc does support): **Test.as:** ``` package { public class Test { public function Test():void {...

bug

if(a) where a is an object type should convert to if(a != null)

bug

``` as3 // as3 subTextureRegion.x = int(subTextureObject[ConstValues.A_X]) / scale; ``` ``` Haxe // Haxe subTextureRegion.x = as3hx.Compat.parseInt(subTextureObject[ConstValues.A_X]) / scale; ```

I tried to run : neko run.n test/ out/ , but got the following error: target HX file: /home/jjon/hxlib/as3hx/1,0,3/out/issues/Issue65.hx WARNING: There is XML that may not have translated correctly in...

bug

Input: ``` as3 if (expression) something(); // A comment ``` Output: ``` haxe if (expression) something() // A comment ; ```

bug

Conversion to setField creates broken expressions when field access occurs on same line. Example: guiById[prefix].visible = partyMember != null; becomes Reflect.setField(guiById, prefix, partyMember != null).visible;

bug

Problem that haxe variables are block-level scoped, but as3 ones are not. From ActionScript3 documetation: > ActionScript variables, unlike variables in C++ and Java, do not have block-level scope. A...

Almost exactly the same setup as https://github.com/HaxeFoundation/as3hx/issues/46 ``` neko run.n source/as3/ out/ Called from sys.io.FileOutput::$statics line 1 Called from Run::main line 102 Called from Run::loop line 33 Called from sys.FileSystem::readDirectory...

AS3 / mxmlc supports conditional compiler variables / expressions: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7abd.html (Issue #45 mentions these but only one specific use case.) You can use booleans to conditionally include entire blocks of...