homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

XML+Button in flash project

5+ Year Member

Msg#: 3753403 posted 4:42 pm on Sep 27, 2008 (gmt 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?



WebmasterWorld Senior Member 10+ Year Member

Msg#: 3753403 posted 7:31 pm on Sep 27, 2008 (gmt 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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved