Hi there, I'm having a bit of trouble with a script to check a 'dynamic number'...

Basically, I've got a movie which plays in a loop and each time it goes around, it clicks up a number, which I have on the stage as 'dynamic text' called "ImageNumber" - this bit is working fine it uses the following code to add:

Code:
var count:uint = count+1;
ImageNumber.text=count.toString();
I have a second 'dynamic number' called "numberOfImages" and what I need to happen, is that the 'loop' checks "numberOfImages" and when that number is reached, "ImageNumber" is reset to '0' so that the count begins again...

Probably really basic if/else statement, but I just can't get my head 'round it...

If anyone can point me in the right direction, I'd be most grateful

Thanks in advance

Rob