Graphics.lineTo error on OpenFL 7.1.2


#1

Graphics.lineTo does not work with OpenFl 7.1.2 when I port to html5 and use open from Internet Explorer 11.

The function works on any other browsers. And it works on Internet Explorer 11 using an older version of OpenFL.

Is there any way to solve this without waiting for a new version?


#2

Are there any errors in the console?


#3

Hi! Yes this is the output of the console:

SCRIPT438: Object doesn’t support property or method 'resetTransform’
Prototype.js (31494,6)

The line described in the message is:

openfl__$internal_renderer_canvas_CanvasGraphics.context.resetTransform();


#4

Thanks!

Could you replace resetTransform in your install with setTransform (1, 0, 0, 1, 0, 0), like this:


#5

Thanks! That fixed the problem! :smile: