Flash target not working: flixel.system._FlxPreloader::GraphicLogoLight(). Expected 0, got 2



  • Hi!

    Haxe noob here. I did set up haxeflixel on one machine, no issues at all. On the second one, something went wrong. Reinstalled everything twice, same issue.

    Stack trace:
    tekmac:FlixelTut teki$ lime test flash
    ArgumentError: Error #1063: Argument count mismatch on flixel.system._FlxPreloader::GraphicLogoLight(). Expected 0, got 2.
    at Type$/createInstance()
    at flixel.system::FlxBasePreloader/createBitmap()
    at flixel.system::FlxPreloader/create()
    at flixel.system::FlxBasePreloader/onInit()
    at openfl.display::Preloader()
    at ApplicationMain$/create()
    at ApplicationMain$/main()
    at boot_73c8/init()
    at flash::Boot/start()
    at boot_73c8()

    Works with neko.
    The code looks good as far as I can tell. createBitmap in FlxBasePreloader.hx seems to be doing the right thing, but ends up with the wrong type. FlxPreloader.hx probably did not find light.png and the type of GraphicLogoLight is wrong somehow?

    Versions:
    lime: [2.9.1]
    openfl: [3.6.1]
    flixel: [4.2.0]


  • administrators

    What Haxe version?

    Can you reproduce this with Flixel demos too, or does it only happen in your project? Any custom compiler flags set, like DCE?



  • Haxe 3.4.

    Managed to fix the issue! I somehow ended up with the wrong lib directory:
    tekmac:FlixelTut teki$ cat ~/.haxelib
    /usr/local/Cellar/haxe/3.4.0/lib/haxe/std

    Uninstalled all the libs, then changed it to /usr/local/lib/haxe/lib, reinstall flixel, everything works now!


Log in to reply