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();
}
}
}