I have a question regarding the proper syntax to use while inserting html tags for font face, font color etc. Please look at excellent tutorial written by Arjen Gosman on creating a Guest book using XML and PHP http://www.kirupa.com/web/xml_guestbook.htm I want to modify lines 78 and 79 in the Action Script to control font size, font color etc. I modified these lines as follows:
myGuestbook.htmlText += “<B><font face=“Verdana” font size=“12 pt” font color=”#ffffff">" + this.firstChild.childNodes*.attributes.myName + “</font></B>” + " wrote:
“;
myGuestbook.htmlText += “<B><font face=“Verdana” font size=“12 pt” font color=”#ffffff”>" + this.firstChild.childNodes*.firstChild.firstChild.nodeValue + “</font></B>” + "
";
However, when I test the movie, I get the following errors:
Error Scene=Scene 1, layer=AS, frame=1:Line 78: Syntax error.
myGuestbook.htmlText += “<B><font face=“Verdana” font size=“12 pt” font color=”#ffffff">" + this.firstChild.childNodes*.attributes.myName + “</font></B>” + " wrote:
“;
Error Scene=Scene 1, layer=AS, frame=1:Line 79: Unexpected ‘lt’ encountered
myGuestbook.htmlText += “<B><font face=“Verdana” font size=“12 pt” font color=”#ffffff”>" + this.firstChild.childNodes*.firstChild.firstChild.nodeValue + “</font></B>” + "
";
Error Scene=Scene 1, layer=AS, frame=1:Line 81: Unexpected ‘}’ encountered
}
Total ActionScript Errors: 3 Reported Errors: 3
What is the proper syntax for changing font size, font color in this excample?
Thanks!