A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: array help! almost done with site

Threaded View

  1. #1
    Junior Member
    Join Date
    Mar 2010
    Posts
    1

    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.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center