[AS3] Graphics drawPath doesn't work on html5 targets

Dear folks,

I found error using Graphics.drapath method in AS3 (openfl 8.4.1).

Uncaught TypeError: commands.get_length is not a function at Graphics.drawPath (openfl.js:44544)

I got work around.

openfl.js(:44544)

while(_g < commands.get_length()) {
to
while(_g < commands.length ){

It working.

graphics.drawPath is supposed to take a Vector.<Int>, did you pass an array instead? (and welcome :grin:)

Thanks,

I used Vector<int>, but an error occured…

I’ll try it once more!!!