christofer
08-18-2005, 01:59 PM
Hello,
I am having a problem with XML based portfolio.swf bascically in my containerMC only one picture/text gets pulled from the xml, I use the following script/xml can anyone help me with this issue,I am sorta new to actionscript and have been struggeling for weeks with this issue dying to get it on line ;-)
This is what i have on each button now:
on (release) {
gotoAndPlay(4);
_root.Load()
}
This is my actionscript code I use inside the fla:
myXML = new XML();
myXML.ignoreWhite = true;
myXML.load("myFile.xml");
_root.node = -1;
function Load(){
_root.node++
this.containerMC.loadMovie(_root.myXML.firstChild. childNodes[_root.node].firstChild);
this.dynamic_txtbx.text = _root.myXML.firstChild.childNodes[_root.node].attributes.name;
}
myXML.onLoad=function(){
load()
}
Any help would be very much appreciated :-D
I am having a problem with XML based portfolio.swf bascically in my containerMC only one picture/text gets pulled from the xml, I use the following script/xml can anyone help me with this issue,I am sorta new to actionscript and have been struggeling for weeks with this issue dying to get it on line ;-)
This is what i have on each button now:
on (release) {
gotoAndPlay(4);
_root.Load()
}
This is my actionscript code I use inside the fla:
myXML = new XML();
myXML.ignoreWhite = true;
myXML.load("myFile.xml");
_root.node = -1;
function Load(){
_root.node++
this.containerMC.loadMovie(_root.myXML.firstChild. childNodes[_root.node].firstChild);
this.dynamic_txtbx.text = _root.myXML.firstChild.childNodes[_root.node].attributes.name;
}
myXML.onLoad=function(){
load()
}
Any help would be very much appreciated :-D