Increment number by 1

Hi all.
I want to increase value by 1 (up to 7), every time my functions is called. But at the moment, my function runs up to 7 at once. This is my code:


function changePageStatus ()
{
    
    for ( var i:uint=1; i<7; i++);{
     pageNum.text=String(i);
        
    }
}

How can I make it increase the value by 1 each time the function is ran?

Thankful for your help :slight_smile: