I have this recurring issue with SWF generated classes and I’m not sure if that’s a problem with OpenFL, SWF lib or FlashDevelop/HaxeDevelop:
When I use generated classes from SWF I sometimes get an error like this:
src/app/view/screens/mainMenu/MainMenuLayout.hx:34: characters 22-30 : Type not found : LongHill
but surely the generated class is present. This issue can sometimes be fixed by opening the generated class after I’d build or rebuild the binaries once, but sometimes even that doesn’t help.
The app compiles just fine, but the issue is that the IDE (HaxeDevelop in my case) would stop any auto-completion and spams me with an error message in the output log instead. It’s very disruptive since the error is being triggered when working on a different class/package that is not using the generated class.
Is there a way to fix the problem? Maybe some setting to enforce HaxeDevelop to look into the generated class folder.
On a highly related note… would it be possible to run
openfl process target.swf
and work with the *.BUNDLE file and have my own class generator? I haven’t figured out how to bind the classes to the *.BIN file, copying come from generated SWF lib class didn’t work and there’s no explanation on-line that would explain how.