Saving the value of 'i' in a for loop

Is there a way to save the value of ‘i’ in a for loop for use later? In the example below it just always will give me the last value of ‘i’…

for(i=1; i<=5; i++) {
	trace(i);
	this["button" + i + "_mc"].onRollOver = function() {
		this._alpha = 100;
		[COLOR="Red"]var title:String = "Button Number " + i;[/COLOR]
		buttonTitle(this, true, title);
	}
	
	this["button" + i + "_mc"].onRollOut = function() {
		this._alpha = 80;
		buttonTitle(this, false);
	}
}