Welcome to WebmasterWorld Guest from 54.205.96.97

Forum Moderators: httpwebwitch

XML+Button in flash project

   
4:42 pm on Sep 27, 2008 (gmt 0)

5+ Year Member



hi there...i have a problem with xml link on flash button
i insert this code in flash
-----------------------------------
news1_btn.onRelease = function() {
getURL(link1 ,"_blank");
};

myXML = new XML();
myXML.onLoad = function(success) {
if (!success) {
trace("XMLfailed to load");
}else {
trace("load was good");
link1 = myXML.firstChild.childNodes[0].firstChild.nodeValue;
link2 = myXML.firstChild.childNodes[1].firstChild.nodeValue;
}
};
myXML.load("p1/1.xml");
-------------------------------------
and this in xml file

-------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<links>
<link> [bbc.com<...]
</links>
-------------------------------------
but link is not working

what i doing wrong in this xml file?
anybody can help me?

7:31 pm on Sep 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Thrasher, and welcome to WebmasterWorld!

To be honest, I have no idea. I suspect that it may be a Flash issue, and not an XML one. The XML looks fine, but I don't know what the Flash expects. If Flash provides a schema or DTD to validate you XML, you might try validating it, and see.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month