Welcome to WebmasterWorld Guest from

Forum Moderators: httpwebwitch

Message Too Old, No Replies

XML+Button in flash project

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

New User

5+ Year Member

joined:Sept 27, 2008
votes: 0

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;
and this in xml file

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

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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 21, 2005
posts: 1526
votes: 0

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.