openfl.display.Stage has no field onWindowResize

#1

Hi

I have upgraded to openfl 8.9.0 then I got this error:

openfl.display.Stage has no field onWindowResize

on

Lib.current.stage.onWindowResize(Lib.current.stage.window, w, h);

which I was calling normally… any idea?

0 Likes

#2

It’s a private method called __onLimeWindowResize, or perhaps you can just dispatch stage.window.onResize.dispatch(w, h)?

Why do you need to trigger this manually? :slight_smile:

0 Likes