para que no pese tanto el archivo
este esmi codigo
Código ActionScript :
con=0;
// -- creo un nuevo objeto XML
miXML = new XML();
// -- ignorar espacios
miXML.ignoreWhite = true;
miXML.onLoad = function(succes) {
if (succes) {
// -- por cada nodo hijo del nodo principal...
for (var i = 0; i < this.firstChild.childNodes.length; i++) {
con++;
// -- delaro una variable que recoje el atributo del nodo (nombre de la imagen)
idImagen = this.firstChild.childNodes[i].attributes.id;
// -- creo un clip de película vacio
holder_mc = createEmptyMovieClip("holder_mc" + i, i + 100);
// -- creo un clip de película vacio
item = holder_mc.createEmptyMovieClip("diapo" + i, i + 100);
// -- cargo la imágen el clip vacio
if (con==1){
idImagen = this.firstChild.childNodes[i].attributes.id;
holder_mc._x = 45;
holder_mc._y = 194;
holder_mc.onRollOver = function(){
this._xscale =190;
this._yscale= 190;
};
holder_mc.onRollOut = function(){
this._xscale =100;
this._yscale= 100;
};
holder_mc.onPress = function(){
gotoAndPlay(2); };
}
//imagen del telefono
if (con==2){
idImagen = this.firstChild.childNodes[i].attributes.id;
holder_mc._x = 80;
holder_mc._y = 270;
}
// imagen usuario
if (con==3){
idImagen = this.firstChild.childNodes[i].attributes.id;
holder_mc._x = 178;
holder_mc._y = 207;
holder_mc.onRollOver = function(){
this._xscale =190;
this._yscale= 190;
};
holder_mc.onRollOut = function(){
this._xscale =100;
this._yscale= 100;
};
holder_mc.onPress = function(){
gotoAndPlay(3);
};
}
//imagenTelefono
if (con==4){
idImagen = this.firstChild.childNodes[i].attributes.id;
holder_mc._x = 205;
holder_mc._y = 280;
}
//imagenUsuario
if (con==5){
idImagen = this.firstChild.childNodes[i].attributes.id;
holder_mc._x = 275;
holder_mc._y = 181;
holder_mc.onRollOver = function(){
this._xscale =190;
this._yscale= 190;
};
holder_mc.onRollOut = function(){
this._xscale =100;
this._yscale= 100;
};
holder_mc.onPress = function(){
gotoAndPlay(4); };
}
//imagenTelefono
if (con==6){
idImagen = this.firstChild.childNodes[i].attributes.id;
holder_mc._x = 315;
holder_mc._y = 160;}
//imagenUsuario
if (con==7){
idImagen = this.firstChild.childNodes[i].attributes.id;
holder_mc._x = 275;
holder_mc._y = 260;
holder_mc.onRollOver = function(){
this._xscale =190;
this._yscale= 190;
};
holder_mc.onRollOut = function(){
this._xscale =100;
this._yscale= 100;
};
holder_mc.onPress = function(){
gotoAndPlay(5); };
}
//imagenTelefono
if (con==8){
idImagen = this.firstChild.childNodes[i].attributes.id;
holder_mc._x = 315;
holder_mc._y = 335;}
if (con==9){
idImagen = this.firstChild.childNodes[i].attributes.id;
holder_mc._x = 424;
holder_mc._y = 194;
holder_mc.onRollOver = function(){
this._xscale =190;
this._yscale= 190;
};
holder_mc.onRollOut = function(){
this._xscale =100;
this._yscale= 100;
};
holder_mc.onPress = function(){
gotoAndPlay(6); };
}
if (con==10){
idImagen = this.firstChild.childNodes[i].attributes.id;
holder_mc._x = 460;
holder_mc._y = 270;
}
item.loadMovie(idImagen);
}
}
};
//miXML.load("http://localhost/SegHigiene/xml_fotos_SH.php");
miXML.load("http://10.6.2.113/SegHigiene/xml_fotos_estatus_SH.php");
stop();alguien podra ayudarme
