swf
swf copied to clipboard
Incorrect capitalisation in package directory
I was getting this error while building an openfl project using assets from an swf.
Export/html5/haxe/_generated/MC_AchievementPopUp.hx:7: characters 73-115 : Type not found : skyPandaTiles_fla.MC_AchievementPopUp2_433
When I searched inside the _generated folder, there was a subdirectory called SkyPandaTiles_fla and inside of it, the file MC_AchievementPopUp2_433 existed.
It took me a moment to realise that the directory name began with an uppercase S, which is incorrect, as a package name in Haxe must begin with a lowercase letter. When I changed this manually and re-tested the error went away.