I made a minimum project in order to test class I’m designing. the project is based on Flixel’s template MouseEventManager.
My problem is: it compiles successfully on my notebook and not on my desktop machine.
E:\soft\HaxeToolkit\haxe\std/flash/display/Loader.hx:9: characters 1-93 : Class not found : flash.system.LoaderContext
The first think that crossed my mind was some library in an older (or newer) version was causing the error.
I first checked library version using command haxelib list.
Except for some (neither used nor needed) libraries all of them have the same version.
So I created a project based on Piratepig (command
lime create project PiratePig) and it doesn’t compile for flash either. The error message is exactly the same as the one showed above.
My next step was looking for LoaderContext.hx in the system. I found it here:
I thought that maybe it was missing LoaderContext.hx in another directory specific for flash so I delete directory
E:\soft\HaxeToolkit\haxe\lib\openfl\2,2,4, changed .current version file to point an older version of openfl and performed an upgrade (haxelib upgrade).
It bring me the version 2.2.4 again. I repeated the search but only the
E:\soft\HaxeToolkit\haxe\lib\openfl\2,2,4\openfl\system\LoaderContext.hx was found so it seems the problem is not been caused by a corrupted or missing file.
Libraries installed on both desktop and notebook:
actuate: 1.7.5 [1.8.1]
Libraries just on desktop: