guitardave78
Programmer
hi guys. I got a bit of action script tat reads an xml and sets up a load of variabls
one of these variables holds a url to an image
Using the load movie function i want to use this url to load an image
i keep getting this error
"file:///C|/inetpub/
so it looks like it can't read the variable properly, yet in a dynamic text box teh variable says the correct url
here s my code, can yoy help?
the empty movi clicp is instance name img
var contentXML = new XML();
contentXML.ignoreWhite = true;
contentXML.onLoad = processContent;
contentXML.load("content.xml"
;
xmlfeed = "Loading";
function processContent(success) {
rootHandler = this.childNodes;
nodeHandler = rootHandler[0].childNodes;
if (nodeHandler[0].nodeName == "member"
{
for (var i = 0; i<nodeHandler.length; i++) {
childHandler = nodeHandler.childNodes;
name = childHandler[0];
rank = childHandler[1];
loc = childHandler[2];
real = childHandler[3];
age = childHandler[4];
image = childHandler[5].attributes.url;
details = childHandler[6];
}
}
}
img.loadMovie(image);
stop();
one of these variables holds a url to an image
Using the load movie function i want to use this url to load an image
i keep getting this error
"file:///C|/inetpub/
so it looks like it can't read the variable properly, yet in a dynamic text box teh variable says the correct url
here s my code, can yoy help?
the empty movi clicp is instance name img
var contentXML = new XML();
contentXML.ignoreWhite = true;
contentXML.onLoad = processContent;
contentXML.load("content.xml"
xmlfeed = "Loading";
function processContent(success) {
rootHandler = this.childNodes;
nodeHandler = rootHandler[0].childNodes;
if (nodeHandler[0].nodeName == "member"
for (var i = 0; i<nodeHandler.length; i++) {
childHandler = nodeHandler.childNodes;
name = childHandler[0];
rank = childHandler[1];
loc = childHandler[2];
real = childHandler[3];
age = childHandler[4];
image = childHandler[5].attributes.url;
details = childHandler[6];
}
}
}
img.loadMovie(image);
stop();