Dissappear/Reappear?

I am attempting to make an image slideshow using Flash 8. I am trying to make the control bar dissappear after 3 seconds of the mouse not moving.
I used this code to see if it worked:
(12 FPS)
Frame 1

xval = _root._xmouse;
yval = _root._ymouse;
Mouse.show();

Frame 36

xval2 = _root._xmouse;
yval2 = _root._ymouse;
if (xval2 = xval){
	if (yval2 = yval){
		Mouse.hide();
		play();
	} else { 
	gotoAndPlay(1);
	}
}else { 
gotoAndPlay(1);
}

(play(); continues into the dissappearing act)

I have tried just using X Values and it still didnt work.

Also when attempting to make the mouse and everything else reappear was also quite the challenge. I tried to use this code:

xval2 = _root._xmouse;
 yval2 = _root._ymouse;
 if (xval2 = xval){
 	if (yval2 = yval){
 		gotoAndPlay(48);;
 	} else { 
 	gotoAndPlay(1);
 	Mouse.show();
 	}
 }else { 
 gotoAndPlay(1);
 Mouse.show();
 }

Any help is much appreciated.

Regards,
THEfish! >< ))*>