297chrisc / playn

Automatically exported from code.google.com/p/playn
0 stars 0 forks source link

A Flash platform fix when trying to load a non existant file #177

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Fixed an issue with:
1) Flash not giving a error callback when a image load fails. This change is 
kind of dependent on my patch fix to gwt-flash, as it creates a Throwable. So 
not sure if someone can also apply that patch, and update the jar for playn. ( 
http://code.google.com/p/gwt-flash/issues/detail?id=2 )

2) Flash throwing out an error when trying to draw an image that failed to 
load. I created a empty 1x1 BitmapData, so it renders nothing instead, which is 
consistent with other platforms. 

Also submitted a minor patch to AbstractAssets, removing a unneeded temporary 
variable. 

/Simen

Original issue reported on code.google.com by simen...@gmail.com on 28 May 2012 at 3:44

Attachments:

GoogleCodeExporter commented 9 years ago
Applied all the patches (and the gwt-flash patch). Thanks!

Original comment by samskiv...@gmail.com on 28 Jul 2012 at 4:37