Help with "simple" button effect

I’m pretty sure this a pretty easy thing to do but for some reason I am drawing a blank…

I want to have it so when a button is clicked the actual button moves up on the page (and remains in it’s new location). I know how to do a rollover but how do I make it so it does that when the user clicks the button?

Thanks

Give your button an instance name called ‘button1’ and place it on the root timeline:

_root.createEmptyMovieClip("script_clip", 100);

button1.onPress = function() {
	_root.active = true;
};

script_clip.onEnterFrame = function () {
	trace(_root.button1._y);
	if(_root.active) {
		if(_root.button1._y >= 10) {
			_root.button1._y -= 10;
		}
	}
};

Change _root.button1._y -= [color=red]10[/color]; to a larger number for it to go fast.

Change if(_root.button1._y >= [color=red]10[/color]) to the _y value you want you box to stop going up at.

Does that cover your problem?