Salve, sono giorni che sbatto la testa in questo problema ma non ne riesco proprio a venire a capo.
Uso un guestbook costruito seguendo un tutorial on line (del quale non trovo più il link), ha sempre funzionato perfettamente, il problema nasce ora che sto cercando di aggiungere un capo di testo mail.
Il guestbook è quasi tutto fatto in flash e si appoggia a due file esterni, un guest.xml dove vengono memorizzati i messaggi e un processXML.php

Il file flash è composto da un campo di testo dinamico "myGuestbook" (dove si visualizzano i messaggi), e da un movie "createMessage" nel quale sono inseriti due campi di testo input "nameField" e "messageField" e due pulsanti "sendButton" e "closeButton" (dove il visitatore scrive il messaggio).

Nel frame della timeLine principale ho il seguente script:


previous._visible = false;
createMessage._visible = false;
createButton.onRelease = function(){
this._visible = false;
this._parent.createMessage._visible = true;
if (createMessage.nameField.text == ""){
Selection.setFocus(createMessage.nameField);
}
else if (createMessage.messageField.text == ""){
Selection.setFocus(createMessage.messageField);
}
}


myXML = new XML();
myXML.ignoreWhite = true;
receiverXML = new XML();

myXML.onLoad = function(success){
myXML.contentType = "text/xml";
if (success){
this.showXML();
}
else{
trace("Error loading XML file");
}
}
myIdentifier=Math.round(Math.random()*10000);
myXML.load("guest.xml?uniq="+myIdentifier);

receiverXML.onLoad = function(){
this.contentType = "text/xml";
_root.currPage = 0;
this.showXML();
}
createMessage.closeButton.onRelease = function(){
this._parent._visible = false;
createButton._visible = true;
}
createMessage.sendButton.onRelease = function(){
var myName = this._parent.nameField.text;
var myMessage = this._parent.messageField.text;
if (myName == ""){
this._parent.errorField.text = "please fill out your name";
Selection.setFocus(this._parent.nameField);
}
else if (myMessage == ""){
this._parent.errorField.text = "please leave a message";
Selection.setFocus(this._parent.messageField);
}
else {
myXML.firstChild.appendChild(myXML.createElement(" entry"));
myXML.firstChild.lastChild.attributes.myName = myName;
myXML.firstChild.lastChild.appendChild(myXML.creat eElement("myText"));
myXML.firstChild.lastChild.lastChild.appendChild(m yXML.createTextNode(myMessage));
myXML.sendAndLoad("processXML.php", receiverXML);
this._parent._visible = false;
createButton._visible = true;
}
}
XML.prototype.showXML = function(){
myGuestbook.scroll = 1;
myGuestbook.htmlText = "";
var numItems = this.firstChild.childNodes.length;
var firstItem = numItems - (currPage*showAmount);
if (currPage == 0) previous._visible = false;
var lastItem = firstItem - showAmount ;
if (lastItem<=0) {
lastItem = 0;
next._visible = false;
}
myCount.text = "Total messages: " + numItems;
if (firstItem == lastItem+1) nowShowing.text = "Showing message " + firstItem;
else nowShowing.text = "Showing message " + firstItem + " to " + (lastItem + 1);
for (i=(firstItem-1); i>= lastItem; i--){
myGuestbook.htmlText += "" + this.firstChild.childNodes[i].attributes.myName + " dice:\n";
myGuestbook.htmlText += this.firstChild.childNodes[i].firstChild.firstChild.nodeValue + "\n\n";
}
}


Come posso a questo script aggiungere un nuovo campo di testo "mailField"?
Ho prvato in vari modi ma non ne sono proprio venuto a capo, spero veramente riusciate ad aiutarmi.
Grazie.