Mouse outside stage

How can the movie detect when the mouse is outside stage (canvas) and add an action when it happens?

thanks