Beat head on keyboard = me!

[AS]
onClipEvent (load) {
onEnterFrame = function () {
if (_global.curGrdLevel != _root.prevGrade) {

		while (i<5) {
			this[curGrdLevel]._xscale += 15;
			this[curGrdLevel]._yscale += 15;
			i++;
		}
	}
};

}

[/AS]

See the onEnterFrame function. I need to use an onpress or something to set i back to 0 however when I try to do that it don’t work! I take hostages and start shooting if I can’t receive an answer in 30 minutes. Please advise…

Don’t mix static and dynamic event handlers like that. It doesn’t make sense and it’s dangerous.