If you put this code in the MovieClip you created. This will work, but it may not be what you envision. You'll want to create a new actions layer and make sure the code is in frame 1.
addEventListener(MouseEvent.MOUSE_OVER, stopOver);
function stopOver(event: MouseEvent): void {
stop();
}
addEventListener(MouseEvent.MOUSE_OUT, playOut);
function playOut(event: MouseEvent): void {
play();
}
This might be better, this way your view were will be able to move the mouse out of the way to completely see your image, but it does involve a click. Again, put this inside the MovieClip you created:
addEventListener(MouseEvent.CLICK, clickEvent);
var t: Boolean; // true or false variable, starts off as false.
function clickEvent(event: MouseEvent): void {
if (!t) { // Looks to see if the 't' is faults, if it is, the movie stops.
stop();
} else { // Otherwise, it plays.
play();
}
t = !t; // This toggles the 't' variable to whatever it wasn't; false becomes true or vice versa.
}
If you're just experimenting, either option will work. Otherwise, you'll have to be more specific in your description in relationship to what you want to accomplish.
Good luck.