Error counting

my script is having some SERIOUS problems but I cant pin point the issue the code seems ok but it just turns out wrong…

basically I start with the #1

and each time the function runs it increases by 1
however if the number goes above 3 (determined by a variable)
then I reset it to wrong…

when it outputs what I get is…

123
123
122error
123
122error

and this continues on and on

here is the code.


load_total=3;
myMCL = new MovieClipLoader();
load_count = 1;
image_count = 1;
function load_product()
{
	myMCL.loadClip("images/"+product[load_count][1], ar_image[image_count-1][0]);
	myMCL.onLoadComplete = function()
	{
		if(load_count < 3)
		{load_count++;} else {load_count=1;}
		image_count++;
		if(image_count < 10 or load_count < load_total)
		{
			load_product();
		}
	}
}

ok guys n/m I got this one. The problem wasn’t with the code it was that I was looping it in a movie clip… so I’d re run the script before it loaded all 9 images.