Hi,
I’m having some difficulties to understand the resize function.
Well, when I resize my window the resize function is called but the problem occurs when I resize my window during an animation. Let’s say I have a rectangle and the rectangle’s width is equal to the stage width and height is equal to 20 and the animation I want is to move my rectangle to stage.stageHeight-20 (so it’s always on the bottom of the screen). Now, as I said before, if I resize the window during that animation, my rectangle will keep moving based on the original stage width and height and the resize function only works when the animation it’s over and when I resize it again.
If I have no animation, it works and width animation I can’t make it to work (only after the animation).
I hope you understand my question.
Thanks in advance.