Hi guys , this is for a friend . Please help me help him out

ok ... here's the scenario
I have a movie Clip on stage named M whose alpha I will be playing with . The basic idea is at load I will be decreasing it by decrements of 5 . But whe it reaches a minimum , I want to create a function which will increase it again by +5 . Simmilarily another function to check wether it has reached a Maximum , and if so , then again start decreasing by -5 . That is the basic logic .
On frame 1 , I have
Code:
low = 5;
high = 95;
function incr () {
	if (_root.m._alpha<=low) {
		do {
			_root.m._alpha +=5;
		} while (_root.m._alpha ==high);
	}
}
Frame # 2 :
Code:
_root.m._alpha -=5;
			incr();
Frame 3 :
Code:
gotoAndPlay (2);
..... Now the obvious problem , that am facing is ( this is only half of the code ... just the increasing aprt ...I have not yet written the decr() function ) ... as I run this , the frame #3 runs perfect and I think the incr() function is ok too . BUt what is creating the problem is in frame 3 there is a gotoAndPlay(2) which is overruling the incr() function as soon as it is tryuing tio get executed and hence the alpha increment is never shown The decrease that is being forced is overriding the implenmentation of the incr() function .
How can i skip this ?