I'm trying to embed several images (the manual way with @:bitmap(...)
for each PNGs) in the same class file.
But, when I come to use the PNG, I keep getting Class not found : assets._NameOfImageClass_
Do I need to import the same-named Class as the *.hx file they're all tossed in, first?
(Example: If they are all defined in: assets/Assets.hx
, do I need to import assets.Assets;
before I can use new ICON_FILE();
or should I be able to just use import assets.ICON_FILE;
?)
I'm using FlashDevelop, this is to target Flash.
(Note: I would prefer not to use an OpenFL solution for this)
You just need the line
import assets.Assets;
The class with assets.
The main class.