Assets.getBytes returns null in test environment
- by ashes999
I'm using the latest Haxe (2.10), NME (3.4.3), and MUnit.
I've written some unit tests that need to fetch bitmap data from SWF symbols. The first step is to actually load the SWF data. To do this, I use NME's getByteArray along with the swf library, like so:
var blah:SWF = new SWF(Assets.getBytes("assets/swf/test.swf"));
The call to…