Community
Game Making Forum
Your discussion topics are welcome!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Scaleform BitmapData Problems #2015 Argument error: Invalid BitmapData

0 REPLIES 0
Reply
Message 1 of 1
fredaikis
708 Views, 0 Replies

Scaleform BitmapData Problems #2015 Argument error: Invalid BitmapData

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

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report