Hello Guys, I only ask when I in die'er need, I know you guys are busy, things have been going good, havn't needed any help in acouple years or so, but I do now. You guys have always save the day for me, and again if you ever need anything, I love to help you guys out in any way I can.
I am using a AS2/XML content window from a Advanced XML site. I've been using this in the main page to open the content xml windows:
loadMovie ("content/content.swf", "myContainer");
but_photo.onRelease=function(){
loadMovie ("content1/content1.swf", "myContainer");
}
but_band.onRelease=function(){
loadMovie ("content2/content2.swf", "myContainer");
}
stop();
When Viewing the site-
"but_photo" is the Blue Button----"
"but-band" is the Green Button----"
All 3 are the same Content Window swf, it loads the new content window.swf, but can't load the proper XML. I put a preloader in the begining of other swf's, it begins to load it, but then pulls up the previous XML or the one that is loaded in the begining. I can not get the content window to load different xml's, it keeps pulling that original xml.
I did my best to reference all help out there for past 2 days and still can't figure it out. Most of the site is based on the content window. Any help would be most appreaciated. Thanks for your time, Jonra
My Testsite: www.tuff-turf.com/midwestAS2- XML code};
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
// Load default XML if no XML defined in index.xml
if (_root.toLoad == undefined) {
_root.toLoad = "content1/content1.xml";
}
xmlData.load(_root.toLoad);
stop();
I'm not using the index.xml, just the content window swf part of the site.
Jonra
Homepage or Main Swf Script -------------------------------------------------------------------------------------------------------
#include "fullScreen_picture.as"
Content Window AS2 script------------------------------------------------------------------------------------------------------------------------
//
// LOAD XML
//
loadXML = function (loaded) {
if (loaded) {
xmlNode = this.firstChild;
contentBorder = Number(xmlNode.childNodes[0].attributes.Border);
contentWidth = Number(xmlNode.childNodes[0].attributes.Width);
contentHeight = Number(xmlNode.childNodes[0].attributes.Height);
txt_mc.txt.htmlText = xmlNode.childNodes[0].firstChild.nodeValue;
headerName.text = xmlNode.attributes.Name;
setContents();
} else {
trace("Error loading XML");
}
};
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
// Load default XML if no XML defined in index.xml
if (_root.toLoad == undefined) {
_root.toLoad = "content1/content1..xml";
}
xmlData.load(_root.toLoad);
stop();