My problem is that I can't seem to reset the countReg var back to 0 once it hits 8. Any ideas? I Would also like to have another button that count backwards to 0 and starts over again at 8.
var countReg:Number = 0;
function nextReg(event:MouseEvent) : void
{
if (countReg == 9)
{
(countReg == 0);
}
countReg++;
trace (countReg) // it just keeps counting up. won't start over after 8