1 Attachment(s)
array help! almost done with site
Hi everyone.
So I have been working on my site for a week or so now, just teaching myself flash and I am running into one last hiccup. My site is for my photography, and at the bottom of the picture, I have a rollover button that displays the caption that goes with the photo. The rollover works fine, but the problem is that when I click the next symbol to advance to the next caption, it skips to the last caption in the sequence and only displays that one, until I go all the way to the end of the 19 images, and on the way back, it starts displaying the captions correctly. Also, the first caption is displayed as "undefined."
I think the problem lies somewhere in this code:
info.onRollOver=function() {
dt.text = capArray[i];
}
info.onRollOut=function() {
dt.text = "";
}
forward.onRelease = function() {
i<18?i++:i=18;
}
back.onRelease = function() {
i>0?i--:i=0;
}
but I am not exactly sure. I've attached the files, someone could check it out and let me know whats going on, that would be amazing!
thanks.