all groups > flash actionscript > february 2004 >
You're in the

flash actionscript

group:

this should be easy...textbox/xml/variables


this should be easy...textbox/xml/variables pocket-rocket
2/25/2004 9:15:32 PM
flash actionscript:
I'm a little stuck and I hope someone can clue me in...I am trying to use an
fla I found off the web to handle my needs.

I have a text box that has a list of items that I am reading in from an xml
file. The way it is set up right now, the xml file can have a url defined for
each item, so if a user clicks an item in the text box, a window will open and
go to that url.

Instead, I want the user's choice to go into a variable. I am a beginner, so
I dont want to do anything too complicated, but is it possible to tweak the
code so the URL 'posts' the selection right back into the swf?

This is the part of the fla that creates the link and displays the text in the
text box:
list += "<a href='" + links[i].url + "'target='_blank'>" + links[i].linkname
+ "</a><br>";


This is what my xml file looks like:
<links id="001">
<url>www.whatever.com</url>
<linkname_text>whatever</linkname_text>
</links>


Thanks in advance to anyone that can help!

oops pocket-rocket
2/25/2004 9:42:49 PM
asfunction
AddThis Social Bookmark Button