Okay, so I have a basic flash file with a button, when you hover over it, an object with dynamic text appears...
Now I want text from an XML file to be pulled from it into my dynamic text box...
this is what my code in my actionScript looks like so far...
function DisplayInfo()
{
var title = items.firstChild;
var items = channel_xml.firstChild.firstChild.childNodes;
box.text1.text = title.firstChild.firstChild.nodeValue;
menu_md._visible = false;
box._visible = true;
box.text1.text = this.location_text;
}
button1.onRollOver = DisplayInfo;
box.closeButton.onRelease = function()
{
menu_md._visible = true;
box._visible = false;
box.text1.text =
Its this part I cant figure out...
My XML looks like this:
Anyone know how to simply grab the info in the description tags and whack it in my dynamic text field?
Now I want text from an XML file to be pulled from it into my dynamic text box...
this is what my code in my actionScript looks like so far...
function DisplayInfo()
{
var title = items.firstChild;
var items = channel_xml.firstChild.firstChild.childNodes;
box.text1.text = title.firstChild.firstChild.nodeValue;
menu_md._visible = false;
box._visible = true;
box.text1.text = this.location_text;
}
button1.onRollOver = DisplayInfo;
box.closeButton.onRelease = function()
{
menu_md._visible = true;
box._visible = false;
box.text1.text =
Its this part I cant figure out...
Code:
{
var title = items[i].firstChild;
var items = channel_xml.firstChild.firstChild.childNodes;
box.text1.text = title.firstChild.firstChild.nodeValue;
menu_md._visible = false;
box._visible = true;
box.text1.text = this.location_text;
}
My XML looks like this:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
<channel>
<title>
Travel Warnings
</title>
<link>
[url="http://travel.state.gov/travel/cis_pa_tw/tw/tw_1764.html"]http://travel.state.gov/travel..._pa_tw/tw/tw_1764.html[/url]
</link>
<description>
TEXT HERE
</description>
</channel>
</rss>
Anyone know how to simply grab the info in the description tags and whack it in my dynamic text field?