Compile fix

This commit is contained in:
Joshua Granick
2014-06-20 12:56:50 -07:00
parent e483261890
commit 22ebfee143
3 changed files with 5 additions and 14 deletions

View File

@@ -449,7 +449,7 @@ class DefaultAssetLibrary extends AssetLibrary {
loader.contentLoaderInfo.addEventListener (Event.COMPLETE, function (event:Event) {
var bitmapData = cast (event.currentTarget.content, Bitmap).bitmapData;
handler (new Image (bitmapData.width, bitmapData.height, new UInt8Array (bitmapData.getPixels (bitmapData.rect))));
handler (new Image (bitmapData, bitmapData.width, bitmapData.height));
});
loader.load (new URLRequest (path.get (id)));