Movement code

i put this code into a button…

on (release) {
	if (_root.menu._x != 298.7) {
		speed = 1;
		_root.menu._x += speed;
    } else {
		stop();
	}
}

but it only increments its _x by 1 when i repeatedly click it… shouldn’t it continue to run through the loop?