Esempio XML:
codice:
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<testo><![CDATA[questo è un MANDA LA MAIL]]></testo>
</data>
Azioni in flash:
codice:
var data_xml = new XML();
data_xml.ignoreWhite = true;
data_xml.onLoad = function(success)
{
if(success){
createTextField("testo_txt", 1, 0, 0, 200, 200);
testo_txt.background = true;
testo_txt.html = true;
testo_txt.htmlText = this.firstChild.firstChild.firstChild.nodeValue;
} else {
trace("FILE XML MANCANTE");
}
};
testo_txt.onPress function mailTo(email)
{
getURL("mailto:" + email);
}
data_xml.load("data.xml");
Non lo ho testato l'ho scritto al volo spero di non avere fatto errori di sintassi
cmq il concetto è usare CDATA e asfunction
ciao