Pause when mouse moves out of the movie

Hey, I’m building a game and I want it to pause when the mouse moves out of the flash movie, i’ve seen other websites that do this and im not sure what the best way of doing it would be, I would like to do it outside of actionscript so I dont have to use IF statements to stop everything if the mouse isnt over the screen.