Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-28-2006, 04:08 AM   #1
Registered User
Join Date: Nov 2006
Posts: 18
Default Links within a list component

I'm currently iterating through the values of an XML file like so:

for(i=0;i<nodes.length;i++) {

How would I display links instead of just text? I've tried having HTML links inside the XML file and adding

xmlList.html = true;

but that was to no avail.
frankwitt is offline   Reply With Quote
Old 11-28-2006, 08:18 AM   #2
Tracing The Dark
mayur_vnit's Avatar
Join Date: Sep 2004
Posts: 538

why do you need to show the html links in the list component.
the items in the list components themselves have the click event.
So u can catch their click event and open a corresponding link.
You are what you repeatedly do Excellence then is not an Act but a Habit... -- Aristotle
mayur_vnit is offline   Reply With Quote
Old 11-28-2006, 06:07 PM   #3
Registered User
Join Date: Nov 2006
Posts: 18

And how would you do that while displaying the data from the XML file? Also, how would you initiate a javascript function with data from the XML file as a parameter?
frankwitt is offline   Reply With Quote
Old 11-29-2006, 01:05 AM   #4
Senior Member
Join Date: May 2005
Posts: 206

You would use an eventlistener on the listcomponent.
Then like
ActionScript Code:
if(my_list.selectedIndex == 0){ use the geturl function here }
loach is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
removeMovieClip() not work for components? djandrew Components 30 08-03-2007 04:51 PM
how can i know when list component is created/loaded. awa ActionScript 2.0 1 07-10-2006 05:01 AM
List Component Double-Click Fuzzplug Jones Components 3 04-18-2006 10:10 PM
The List Component...I hate it! InLineOFire Components 1 07-04-2005 04:22 PM
List box component add data? mordocai Components 1 03-18-2005 02:06 AM

All times are GMT. The time now is 04:43 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.