Ho avuto lostesso tuo problema, tra che il file XML pesava 1.5 mb, e andava anche lento.Cosi ho formattato l'XML al mio piacere.ES:
codice:
/// XML
<?xml version="1.0" encoding="iso-8859-1"?>
<nodo>
<subNodo titolo="bllalalal" id="1">ghaerbaebvgasdfhbfhklbflkasdbcvhkbsdhcfbsdhbvhils </subNodo>
<subNodo titolo="bububu" id="2">gasdfas iqwrgwgiwr wer ifiruir i u huietgh u eh </subNodo>
</nodo>
// Flash
class Prova
{
private var _titolo:String;
private var _ID:Number;
private var _testo:String;
function Prova (tit:String, id:Number, txt:String)
{
_titolo = tit;
_ID = id;
_testo = txt;
}
public function cercaNelTesto (str:String):Void
{
if (_testo.indexOf (str))
{
trace ('Testo trovato');
}
}
}
// Flash timeline
var n1 = new Prova ('bllalalal', 1, 'ghaerbaebvgasdfhbfhklbflkasdbcvhkbsdhcfbsdhbvhils');
var n2 = new Prova ('bububu', 2, 'gasdfas iqwrgwgiwr wer ifiruir i u huietgh u eh ');
n1.cercaNelTesto ('bu');
ciao