Si si, estoy segura, pero mira, te pongo todo el code, a ver si tú puedes ver dónde está el fallo.
Por una parte tengo ésto:
Código ActionScript :
var mi_mcl = new MovieClipLoader();
miListener = new Object();
miListener.onLoadStart = function(target_mc) {
target_mc._visible = false;
target_mc._xscale = 100;
target_mc._yscale = 100;
_root.barra_mc._width = 1;
_root.barra_mc._visible = true;
};
miListener.onLoadProgress = function(target_mc, loadedBytes, totalBytes) {
_root.barra_mc._width = 100*(loadedBytes/totalBytes);
};
miListener.onLoadComplete = function(target_mc) {
_root.barra_mc._visible = false;
};
miListener.onLoadInit = function(target_mc) {
var ancho_maximo = 580;
var alto_maximo = 580;
if (target_mc._width>ancho_maximo || target_mc._height>alto_maximo) {
if (target_mc._width/target_mc._height>1) {
// disposición horizontal
var coef = target_mc._width/ancho_maximo;
} else {
// disposición vertical
var coef = target_mc._height/alto_maximo;
}
target_mc._width /= coef;
target_mc._height /= coef;
}
target_mc._visible = true;
};
mi_mcl.addListener(miListener);
stop();
Y después tengo el code del botón, q lo pongo aqui otra vez por si acaso:
Código ActionScript :
var index:Number = 0;
btn_sig.onPress=function(){
if ( index < 10 )//Si solo hay 10 fotos
{
mi_mcl.loadClip("ampliaciones/"+index+".jpg", contenedor_mc);
index++;
}
}
btn_sig.onPress();
//BOTON PARA ATRAS
var index:Number = 0;
btn_ant.onPress=function(){
if ( index < 10 )//Si solo hay 10 fotos
{
mi_mcl.loadClip("ampliaciones/"+index+".jpg", contenedor_mc);
index--;
}
}
Y luego en el escenario tengo un mc vacio, el "contenedor_mc" y los dos botones, y nada más, eso es todo lo q hay... ¿me falta algo entonces?