I remember this was discussed earlier, but I cant find the right keywords
MX2004 saved as player6 + AS1
The code:
stop();
menuLoaded = 0;
menuLength = 0;
prod_menu_xml = new XML();
prod_menu_xml.ignoreWhite = true;
prod_menu_xml.load("productTest.xml");
prod_menu_xml.onLoad = function(success)
{
if(success)
{
//trace("status "+prod_menu_xml.status);
//trace("toString "+prod_menu_xml.toString());
//trace(prod_menu_xml.firstChild.childNodes[0].childNodes.length);
nextFrame()
}
}
// On the second frame
stop();
function createInterface()
{
createTextField("prod_mainUP_txt", 5, 200,110,450,230)
}
createInterface()
function feedProductPanel()
{
//trace(prod_menu_xml.firstChild.childNodes[0].childNodes[0].attributes.descText)
prodDescription = prod_menu_xml.firstChild.childNodes[0].childNodes[0].attributes.descText;
trace(typeof(prodDescription))
//prodDescription = "gjgjgjg
khgkjcv";
prod_mainUP_txt.text = prodDescription;
}
feedProductPanel()
The xml is loaded correct, the variable is a string, but the "
" caracter is simply show up, what the h*** is happening?
When the variable is loaded with the same text is ok…so
HELP, Pls