Hi Everybody. I'm trying to add a "on fire effect" to our UI.
So basically, if a player gets a kill streak, his UI would start burning, something cool to do :). I am achieving this using BitmapData and PerlinNoise and some others.
The issue comes when anything I do with the BitmapData causes this error:
ArgumentError: Error #2015: Argument error: Invalid BitmapData.
at effects::FireFX/updateBitmaps()[E:\TheNewZ\Game Files\UI SRC\src\classes;effects;FireFX.as:311]
at effects::FireFX/doFire()[E:\TheNewZ\Game Files\UI SRC\src\classes;effects;FireFX.as:382]
Something as simple as this will cause the error to show up.
displayBmp = new BitmapData(200, 200, true, 0);
scratchBmp = displayBmp.clone();
Most info I found was crashing on the constructor, in my case, functions like clone() or perlinNoise() or colorTransform.... etc... are causing the crash.
Debugging / Running it under Animate CC works just fine.
I hope somebody knows how to get around this 🙂
PD: Publishing to Flash 10.3, using Scaleform: 4.1.19
Thanks