A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] Caption on thumb rollover + XML / as3

  1. #1
    Member
    Join Date
    Sep 2008
    Posts
    39

    resolved [RESOLVED] Caption on thumb rollover + XML / as3

    I'm not sure if this is the right place - I think it is.
    I really really really really need help!
    thanks so much in advance!

    I'm building a header for a webpage. I have thumbnails that when you click on the thumbs the image changes. The big image also cycles through on it's own. I want a caption to show up when you roll over the thumbnails, like a preview.



    var targetCaption:int;
    caption_txt.htmlText = String(xmlData.pic.captiontext[targetCaption]);

    The text shows up but only the first one. I want it to change on rollover
    Last edited by laurabeth; 07-29-2009 at 03:09 PM.

  2. #2
    Member
    Join Date
    Sep 2008
    Posts
    39
    The thing i was doing wrong was so so so stupid:
    i don't know if this makes sence but this is what worked:
    var targetCaption:int =0;

    THIS line was key duh:
    targetCaption = event.currentTarget.pictureValue;

    caption_txt.htmlText ="";
    caption_txt.htmlText = String(xmlData.pic.captiontext[targetCaption]);

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