Problem with MOUSE_MOVE?

Hello,

I am trying to have a series of frames playing while the mouse is not on the stage, and paused and under control of forward and back buttons while the mouse is on the stage.

I am using this command to call an “onstage” function (which stops play) when the mouse is over the stage: “stage.addEventListener(MouseEvent.MOUSE_MOVE, onstage);”
(see complete code below)

It is working very erratically. When the mouse enters the lower half of the stage, “onstage” is called and play stops according to the function. At the upper 1/2 of the stage, “onstage” is called and play is stopped only when you enter from some parts of the stage and sometimes not at all. At the middle 1/2 of the stage entering from the sides, play is not stopped at all.

Of note, when I make the show full screen, it works flawlessly, entering the stage from all ends. In it’s native size and in my web-page however, the play does not stop at all in the middle of the stage, and very erratically toward the top of the stage.

I followed this excellent demonstration in regard to MOUSE_MOVE and MOUSE_LEAVE, to make functions for when mouse is over the stage and when mouse is off the stage: http://www.kirupa.com/developer/flashcs3/detecting_when_mouse_leaves_movie.htm

Very new and very stuck!! Any ideas?

Here is my code:

function Start() {
stage.addEventListener(MouseEvent.MOUSE_MOVE, onstage);
stage.addEventListener(Event.MOUSE_LEAVE, offstage);
}
function forward(e:MouseEvent):void
{
if (this.currentFrame == 5){
gotoAndStop(1);
}
else {
nextFrame();
}
}
function back(e:MouseEvent):void
{
if (this.currentFrame == 1){
gotoAndStop(5);
}
else {
prevFrame();
}
}
function onstage(evt:MouseEvent):void {
stop();
forward_btn.addEventListener(MouseEvent.CLICK,forward);
back_btn.addEventListener(MouseEvent.CLICK,back);
}
function offstage(evt:Event):void {
play();
}

Start();

Thanks!!