FlxTileblock not working in windows.
I need help with this. I'm using FlxTileblock for backgrounds, and this work fine in Flash, and Neko, but is invisible in Windows.
_background = new FlxTileblock(0, 0, Math.ceil(FlxG.width * 1.2), Std.parseInt(this.properties.get("backH"))); _background.y = FlxG.height - _background.height - 30; _background.loadTiles(Reflect.field(Reg,this.properties.get("back")), 256, Std.parseInt(this.properties.get("backH"))); _background.scrollFactor.set(.55, .15);
This (Std.parseInt(this.properties.get("backH"))) is because i get this info from a TiledMap.
This is the image https://drive.google.com/open?id=0Bw-GVZEumxhWTUdiemRNb09JaXM
This are my settings
lime: [2.9.1] 3.3.0
openfl: [3.6.1] 4.3.1
I try changing to FlxSprite but was the same.
Is the image the problem
I think the problem is not FlxTileblock, is Reflect.
I made a trace in the values for this.properties.get("back") and for Reflect.field(Reg).
Mark as closed. The problem was that in Reg Class the var was declared "inline" and Windows don't accept that seems.