Flash imports in FlashDevelop

Hi all

I understand the backwards compatibility issues, but the fact that FD suggests multiple import choices is just plain annoying. Is it possible to instruct FD to suggest only the openfl.* imports (e.g. just openfl.display.Sprite)?

Thanks
Gil

Open the include.xml file in your local copy of OpenFL, and replace this line with “<source path="externs/core/flash" if="flash" unless="display" />.”

It may not take effect until you compile and/or restart FlashDevelop and/or restart your computer, but sooner or later you should stop seeing flash.* suggestions.

2 Likes

Worked like a charm! Thank you very much.

Thanks https://github.com/openfl/openfl/commit/061748f9700acd6fea15688c61375c9786269e5e