Hi All.
Have problem with a image gallery that uses a dynamic mask for image transitions and interval to go to the next frame where the process is repeated with the new image.
Is there an ifinite loop somewhere… I’m kind of new to AS so my debugging sucks.
// TIME DELAY
var delay = 4000;
// FUNCTIONS
function goNext() {
nextFrame();
clearInterval(waitInt);
}
function imgWipe() {
cols = image_mc._width/square_mc._width;
rows = image_mc._height/square_mc._height;
height = square_mc._height;
width = square_mc._width;
d = 10;
createEmptyMovieClip('holder', 1);
holder._x = image_mc._x;
holder._y = image_mc._y;
startY = 18;
startX = 18;
for (var r = 0; r<=rows; r++) {
for (var c = 0; c<=cols; c++) {
newClip = holder.attachMovie("square_mc", "clip"+r+c, d++);
newClip._x = (c*width)+startX;
//trace(newClip._x);
newClip._y = (r*height)+startY;
}
}
image_mc.setMask(holder);
}
And in each new frame:
stop();
imgWipe();
var waitInt = setInterval(goNext,delay);
Any help is appreciated, I can post a .fla if needed.
thanks
.henkedo