Ciao a tutti ho un problema.
Ho caricato delle slide nello stage ma quando pagina vorrei cambiare le immagini dello slide che sono caricate da un file xml
Penso che la soluzione si in removeChild ma mi dà sempre errore
Error #2044: ioError non gestito:. text=Error #2032: Errore di flusso. URL: file:
il codice è
function create_photo_tab(e:Event):void
{
flashmo_xml = new XML(e.target.data);
total = flashmo_xml.photo.length()-2;
for( i = 0; i < total; i++ )
{
flashmo_photo_list.push( {
thumbnail: flashmo_xml.photo[i].thumbnail.toString(),
filename: flashmo_xml.photo[i].filename.toString(),
title: flashmo_xml.photo[i].title.toString(),
description: flashmo_xml.photo[i].description.toString(),
url: flashmo_xml.photo[i].url.toString(),
target: flashmo_xml.photo[i].target.toString()
} );
if (pagina == 12)
{
removeChild(flashmo_xml.photo);
flashmo_xml.photo.shift()
}
}
load_photo();
load_tn();
photo_title.text = flashmo_xml.photo[0].title.toString();
photo_description.text = flashmo_xml.photo[0].description.toString();
}