Hi,
I'm currently working on a dynamic photo gallery. I am loading 20 images on screen in 20 separate movie clips. But if the total number of photos is less than 20, I'm obviously getting an error when the picture being asked is not found. What I need is to load a blank image after the first error msg is reported and in the remaining movie clips:
What I think I need is to call a function on load error. How is this done ?
Here is part of the code I'm using:
for (i=1; i<21; i++) {
myMCL.loadClip("gallery/tn_photo"+picNum+".jpg", this["thumbHolder"+i]);
picNum++;
____________________________
Also, I read that a variable within a function is treated differently from one outside. It seems that you can have 2 variables with the same name but located in different function and these will not be related.
But what if I need to call a variable that was set and is being maintained outside my function or in a different function, how is this done?
Thanks !!
I'm currently working on a dynamic photo gallery. I am loading 20 images on screen in 20 separate movie clips. But if the total number of photos is less than 20, I'm obviously getting an error when the picture being asked is not found. What I need is to load a blank image after the first error msg is reported and in the remaining movie clips:
What I think I need is to call a function on load error. How is this done ?
Here is part of the code I'm using:
for (i=1; i<21; i++) {
myMCL.loadClip("gallery/tn_photo"+picNum+".jpg", this["thumbHolder"+i]);
picNum++;
____________________________
Also, I read that a variable within a function is treated differently from one outside. It seems that you can have 2 variables with the same name but located in different function and these will not be related.
But what if I need to call a variable that was set and is being maintained outside my function or in a different function, how is this done?
Thanks !!