Yep, they're both in the same place. Hold on, I'll give you the url and you test it for yourself. I post a comment and it loads into the output TXT however when I go to a different page, it disappears.
Here's the AS code, please take a look at it and look for any errors.
var inputXML = new XML();
inputXML.ignoreWhite = true;
inputXML.contentType = "text/xml";
inputXML.load("guestbook.xml");
var outputXML = new XML();
outputXML.ignoreWhite = true;
outputXML.onLoad = function () {
gb_output ="";
var postElement = inputXML.firstChild.childNodes;
for (var i=0; i<postElement.length; i++) {
gb_output += "<b>Name: </b>"+postElement[i].attributes.name+"<br>";
gb_output += "<b>Date: </b>"+postElement[i].attributes.date+"<br>";
gb_output += "<b>Message: </b><br>"+postElement[i].attributes.message+"<br><br>";
gb_output += "__________________<br>";
}
}
outputXML.load("guestbook.xml");
btn_submit.onRelease = function () {
var date = new Date();
var cDate = (date.getMonth()+1)+"-"+(date.getDate())+"-"+(date.getFullYear());
var node = inputXML.createElement("post");
node.attributes.message = form.gb_message.text;
node.attributes.date = cDate;
node.attributes.email = form.gb_email.text;
node.attributes.name = form.gb_name.text;
inputXML.firstChild.insertBefore(node, inputXML.firstChild.firstChild);
inputXML.sendAndLoad("GBaddPost.php", outputXML);
popup.gotoAndPlay(2);
}
http://demolaynyc.as...oject1/index_v4[8].swf --go to Fan ZOne page
<?xml version="1.0"?><guestbook><post name="Albert Villaroman" email="masugidsk8r@yahoo.com" date="10-14-2006" message="Yo man this is just a text but I think this test will work. I sure hope so man, I really do so please load and send it back to this movie please? THank you." /><post name="unnamed 1" email="nomail@domain.com" date="10-11-06" message="hello" /></guestbook>
Edited by demolaynyc, 15 October 2006 - 12:46 AM.