Stop a guy from moving once a window is loaded?

I can’t stop my guy from moving once a window is loaded.
The whole point of the window is to appear and in the same time stop the guy from moving because I don’t want him to be able to move as long as the window is there.

Besides that, the second problem I am facing is that I can’t close the window as long as my guy is colliding with the mc that creates the window.

In other words , take a look at the fla.