OpenFL requires --macro allowPackage("flash")
to work, which suppress the You can not access the flash package...
error.
It looks like include
is called before allowPackage
, so you may manually call allowPackage
before include
:
<haxeflag name="--macro" value="allowPackage('flash')" />
<haxeflag name="--macro" value="include('my.pack')" />