You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any more info on this? It sounds like Firefox is complaining about a negative width/height to drawImage. If this traces back to somewhere in Flambe, I definitely want to see this fixed. :)
Yeah, it was a negative issue. When i limited the values for above zero only it worked. It was the SourceX and SourceY that were negative, everything else was positive i believe.
If you're using flash to create Starling spritesheets and using them in Flambe, Flash will put negative values in for your sourceX and sourceY when it encounters empty frames of animation.
In firefox., but not in Chrome:
I am getting an IndexSizeError in the drawSubImage function in the flambe.platform.html.CanvasDrawingContext prototype declaration
Here is what the console is showing:
IndexSizeError: Index or size is negative or greater than the allowed amount
Line 4865
Which links to this snippet of code:
,drawSubImage: function(texture,destX,destY,sourceX,sourceY,sourceW,sourceH) {
var htmlTexture = texture;
this._canvasCtx.drawImage(htmlTexture.image,Std"int",Std"int",Std"int",Std"int",Std"int",Std"int",Std"int",Std"int");
}
The text was updated successfully, but these errors were encountered: