Hi all
I'm very new to HF so I might be going about this completely wrong...
I'm loading up some external data from a file (a 400x400 .psd file which contains all my 32x32 sprites) and storing it as a 'BitmapData' object. I then pass that through to 'loadGraphic' and get the image section I need from the data. That works fine.
What I want to do though is load the file up during the Main.hx file and the commit it to some sort of cache.
I was looking at "BitmapFrontEnd" which lets me pass in a BitmapData object + a cache key, but when I try and get the value back out it always seems to be null. I also looked at Asset.loadBitmapData, but this just seems to take a file, not something that's already a BitmapData object.
Is there some way to store a loaded asset like this somewhere in HF that I can retrieve later?
Cheers!