In summary:
Inside file: main.hx:
/////////////////////////////////////////////////////////////////////////
import openfl.Assets;
Assets.getBitmapData("assets/img/TEST.png");
/////////////////////////////////////////////////////////////////////////
Inside file: application.xml:
/////////////////////////////////////////////////////////////////////////
< assets path="assets/img" include="*" / >
/////////////////////////////////////////////////////////////////////////
the < and > is supposed to be less than and greater than symbols...
But the HTML editor wont let me escape them when I go into the source...
----------------------- Rants an other information below. ---------------------------------------
Found the answer.
Kind of angry at the fact that... What was lacking was an import.
What the hell?!
Maybe I am just a complete idiot.
But how about people start remembering to include the damn import statements with
their code examples!?
Answer here:
http://stackoverflow.com/questions/17078148/embeding-and-reading-image-assets-when-deploying-to-windows
Extra notes:
This looks interesting:
embed="true" path="Assets" rename="assets" include="*" exclude="openfl.svg" />
Source:
http://stackoverflow.com/questions/21660069/how-to-embed-an-image-in-windows-target
No comments:
Post a Comment