Error on Flixel and Openfl classes

580 views
Skip to first unread message

Katastroph

unread,
Jun 4, 2014, 12:10:15 PM6/4/14
to haxef...@googlegroups.com
Hello guys !

I've just upgraded my version of Flixel (2.0.0-alpha.3 -> 3.3.4) and Openfl (1.0.6 -> 2.0.0).
Now compiling give me these errors :

C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/system/FlxCollisionType.hx:12: characters 1-21 : Cannot declare member variable in abstract
C:\HaxeToolkit\haxe\lib\openfl/2,0,0/backends/native/openfl/Vector.hx:859: characters 9-21 : Array<openfl.Vector.T> has no field indexOf
C:\HaxeToolkit\haxe\lib\openfl/2,0,0/backends/native/openfl/Vector.hx:866: characters 9-25 : Array<openfl.Vector.T> has no field lastIndexOf
C:\HaxeToolkit\haxe\lib\openfl/2,0,0/backends/native/openfl/geom/Matrix3D.hx:242: characters 2-12 : No @:arrayAccess function accepts arguments of Int and Int
export/windows/cpp/haxe/DefaultAssetLibrary.hx:35: characters 8-69 : Variable initialization must be a constant value
export/windows/cpp/haxe/DefaultAssetLibrary.hx:36: characters 8-63 : Variable initialization must be a constant value
export/windows/cpp/haxe/DefaultAssetLibrary.hx:37: characters 8-66 : Variable initialization must be a constant value
export/windows/cpp/haxe/DefaultAssetLibrary.hx:2440: characters 7-26 : Array<String> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/util/FlxArrayUtil.hx:11: characters 9-22 : Array<indexOf.T> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/util/FlxRandom.hx:174: characters 11-27 : Array<Int> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/util/FlxArrayUtil.hx:81: characters 14-27 : Array<fastSplice.T> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/group/FlxTypedGroup.hx:45: characters 18-40 : flixel.system.FlxCollisionType has no field GROUP
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/FlxBasic.hx:49: characters 60-81 : flixel.system.FlxCollisionType has no field NONE
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/FlxBasic.hx:49: characters 8-82 : Variable initialization must be a constant value
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/plugin/TweenManager.hx:14: characters 9-57 : Variable initialization must be a constant value
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/util/FlxArrayUtil.hx:84: characters 3-34 : Cannot inline a not final return
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/plugin/TweenManager.hx:9: lines 9-116 : Defined in this class
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/util/FlxRandom.hx:216: characters 11-27 : Array<Float> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/util/FlxPool.hx:36: characters 21-34 : Array<flixel.util.FlxPool.T> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/util/FlxStringUtil.hx:465: characters 13-29 : Array<Int> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/util/FlxArrayUtil.hx:84: characters 3-34 : Cannot inline a not final return
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/plugin/TimerManager.hx:10: lines 10-89 : Defined in this class
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/plugin/PathManager.hx:10: characters 9-40 : Variable initialization must be a constant value
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/util/FlxArrayUtil.hx:84: characters 3-34 : Cannot inline a not final return
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/plugin/PathManager.hx:8: lines 8-97 : Defined in this class
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/util/FlxPath.hx:549: characters 19-32 : Array<flixel.util.FlxPoint> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/system/frontEnds/PluginFrontEnd.hx:18: characters 8-54 : Variable initialization must be a constant value
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/FlxObject.hx:491: characters 18-41 : flixel.system.FlxCollisionType has no field OBJECT
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/group/FlxTypedGroup.hx:133: characters 6-21 : Array<flixel.group.FlxTypedGroup.T> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/FlxGame.hx:384: characters 2-33 : dispatch cannot be called
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/animation/FlxAnimationController.hx:779: characters 9-42 : Array<flixel.system.layer.frames.FlxFrame> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/tile/FlxTilemap.hx:212: characters 18-42 : flixel.system.FlxCollisionType has no field TILEMAP
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/group/FlxGroup.hx:51: characters 38-66 : flixel.system.FlxCollisionType has no field SPRITEGROUP
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/tile/FlxTilemap.hx:867: characters 38-61 : flixel.system.FlxCollisionType has no field OBJECT
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/group/FlxTypedSpriteGroup.hx:80: characters 18-46 : flixel.system.FlxCollisionType has no field SPRITEGROUP
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/group/FlxTypedGroup.hx:260: characters 18-33 : Array<flixel.group.FlxTypedGroup.T> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/group/FlxTypedGroup.hx:283: characters 18-33 : Array<flixel.group.FlxTypedGroup.T> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/group/FlxTypedGroup.hx:323: characters 42-64 : flixel.system.FlxCollisionType has no field GROUP
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/group/FlxTypedGroup.hx:356: characters 43-65 : flixel.system.FlxCollisionType has no field GROUP
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/system/frontEnds/CameraFrontEnd.hx:59: characters 18-30 : Array<flixel.FlxCamera> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/system/debug/ConsoleUtil.hx:72: characters 7-34 : Array<String> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/system/debug/ConsoleUtil.hx:213: characters 9-23 : Array<String> has no field indexOf
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/FlxSprite.hx:185: characters 9-87 : Variable initialization must be a constant value
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/FlxSprite.hx:1605: characters 46-53 : Unknown identifier : _pixels
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/FlxObject.hx:101: characters 31-55 : flixel.system.FlxCollisionType has no field TILEMAP
C:\HaxeToolkit\haxe\lib\flixel-addons/git/flixel/addons/display/FlxBackdrop.hx:43: lines 43-110 : Class not found : FlxGraphicAsset
source/ProjectClass.hx:6: lines 6-20 : Defined in this class
source/ProjectClass.hx:11: lines 11-19 : Missing super constructor call
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/util/FlxArrayUtil.hx:84: characters 3-34 : Cannot inline a not final return
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/flixel/text/FlxText.hx:27: lines 27-958 : Defined in this class
C:\HaxeToolkit\haxe\lib\flixel/3,3,4/org/flixel/FlxG.hx:50: characters 7-13 : Unexpected public

The "source/ProjectClass." parts are errors from my code, although I do not understand why : I have a super in the constructor but it does not accept the FlxState I pass in parameter.
If you could give me a hand that would be great !

Gama11

unread,
Jun 4, 2014, 3:05:53 PM6/4/14
to haxef...@googlegroups.com
This is happening because you are using an outdated version of Haxe. Get the latest version here.

Katastroph

unread,
Jun 5, 2014, 3:44:40 AM6/5/14
to haxef...@googlegroups.com
It works, thank you very much!
Reply all
Reply to author
Forward
0 new messages