I’m able to build my project for Flash just fine, and the SWF works beautifully locally. After putting it up on my server, I tried accessing it from my browser. Unfortunately it crashes after starting up!
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData/ctor()
at flash.display::BitmapData()
…
I’m using the Tilelayer lib, and it’s while getting the spritesheet using openfl.Assets.getBitmapData()
that it crashes. This is well after preloading is complete, so I don’t know what’s wrong. I use the embed="true"
attribute for all of my assets. It crashes the same way, regardless of whether I load the HTML page containing the SWF or the SWF itself directly.
I couldn’t find any helpful information on past forums, because they would see this crash behavior locally. But my case is a bit different. Any help will be super appreciated, thanks!