A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [F8] Rollovers on an XML list

  1. #1
    Ctrl Z Ctrl Z F1 Ctrl Z Ctrl Z PONYACK's Avatar
    Join Date
    Nov 2005
    Location
    North Carolina
    Posts
    202

    [F8] Rollovers on an XML list

    Hi,

    I am using XML to load a list of links. Works fine and the links work as well.

    Is it possible to create a rollover event for the list items?

    If so, is this done in the AS or within the XML file?

    Below is the line that is formatting the dynamic text box. Is this a good idea or is there a better way?

    Code:
    content += "<font size='+6' color='#3366cc'><a href='"+URL+"'>"+lead+"</a></font>"+body+"<br><br>";
    				txt.htmltext=content;
    Thanks.

    Ponyack

  2. #2
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    what kind of rollOver event?,- you can trigger AS functions from within html text but as far as I know only on the default click event,- so just if you click on a html link within that textfield.
    If the links are seperate movieClips (not 1 whole textfield) you could assign a rollOver whatEver actionscript event on rollOver for each

  3. #3
    Ctrl Z Ctrl Z F1 Ctrl Z Ctrl Z PONYACK's Avatar
    Join Date
    Nov 2005
    Location
    North Carolina
    Posts
    202

    Rollover

    Thanks for the reply.

    I just wanted to have a simple text on rollover...in other words when you run the cursor over the text it changes color.

    Since I am loading the data form an xml I have only a dynamic text field on the page.

    So do I set up this event inside the xml?

  4. #4
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    hmm,- checked the css support for flash?,- there could be a roll Over state

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