Mouse makes pic move

I am trying to make a flash footer for this forum. A footer is 300 by 60. If the user mouses on the top half of the footer, then my image inside will scroll up. Vice versa for mousing on the bottom half. It aint seem to work. I put the below on the image, which is a movie clip.


onClipEvent (load) {
	//because the footer is 30 pixels high
	newHeight = this._height+30;
}
onClipEvent (enterFrame) {
	//see if pic is able to scroll up any more
	if (_root._ymouse<30 and this._y>newHeight) {
		//scroll up
		this._y--;
	}
	//see if pic is able to scroll down any more
	if (_root._ymouse>30 and this._y<0) {
		//scroll down
		this._y++;
	}
}

problem solved. I just changed some 30’s to 15’s

An additional question. When the user mouses off of the whole flash movie, the last _root._ymouse is still retained. How do I null it or set it to some number so my move doesn’t keep on running?

hey mate… id like to mabye to see upload of what you have made… sound pretty cool… and from what u have decribed… it sounds like there is a much easier way to do it… but im probably wrong… =P

-Scotty

hmm, seems to me you could do it much easier by simply using two transparent buttons… the button’s onRollOut should trigger when the mouse is moved outside of the movie, so that should solve your problem… much easier than messing with _ymouse anyways.