Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create url links from an xml file loaded into a textfield? 1

Status
Not open for further replies.

tippytarka

Programmer
Jul 19, 2004
115
GB
ok this is what i what like to do but want to know if it is possible...

i have the following XML file..

Code:
<artist>
<name>zionnoiz</name>
<url>roster_02_artists_zionnoiz.swf</url>
</artist>

<artist>
<name>shameless</name>
<url>roster_02_artists_shameless.swf</url>
</artist>

<artist>
<name>k.ners</name>
<url>roster_02_artists_kners.swf</url>
</artist>

i would like to loop through the XML file using a 'for loop' to display <name> inside a scrollable textfield on level 1. <url> is the link to load in the movie that corresponds with <name>.

is it possible to loop and display <name> into the textfield turning it into a clickable link that loads the corresponding movie onto level 2?

i've searched top and bottom for info on how to do this but cant find anything. can anyone explain how i would approach this or point me to a good tutorial?

cheers!
 
You'd probably have to use html formated text so that name is an a href link, itself calling an asfunction within the Flash movie, to load the appropriate movie.




Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
putting it into a scrollable textfield may not be the easiest way to go

if you parse the xml file and load it into a list box you can set the label as the name and the data as the url. then use the changehandler property to load the correct swf

quick example


if you want to go this way let me know and ill put up the files for download
 
bill... looks great... my only question is when the list of artists increase how would i include some type of scroll action? cheers, i would appreciate it if you can upload the files!
 
cheers bill!!! your a diamond geezer! works perfect!!!
 
bill, just one other question... how do i turn off the border around the dropdown box?
 
lots of different ways to get rid of the border

dropdown.boundingBox_mc._visible = false;

added to the code will do the trick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top