AS3 - Want video to stop when navigate off of the frame any help?

Help would be much appreciated, at the moment i have tried using booleans but this is making my code have many errors so i was wondering if there was another easier way?