Hola a Todos! tengo este script:
function cargarDiapositivas(Void)
{
this.slideshow = this.createEmptyMovieClip("slideshow", this.getNextHighestDepth());
this.slideshow.createEmptyMovieClip("bound_mc", 0);
this.setArea(this.slideshow.bound_mc, this.sld_w, this.sld_h);
this.slideshow.setMask(this.sld_mask ? (this.slideshow.bound_mc) : (null));
this.slideshow._x = this.sld_x;
this.slideshow._y = this.sld_y;
this.slideshow.owner = this;
this.slideshow.count = this.frames;
this.cargoDiapositivas = new Array();
var _loc2 = 0;
var _loc3 = this.misDiapositivas.length;
while (_loc2 < _loc3)
{
this.cargoDiapositivas[_loc2] = this.slideshow.createEmptyMovieClip("slide_" + _loc2, _loc2 + 1);
this.cargador.loadClip(this.misDiapositivas[_loc2], this.cargoDiapositivas[_loc2].createEmptyMovieClip("clip", 0));
++_loc2;
} // end while
this.slideshow.createTextField("texto_txt", this.slideshow.getNextHighestDepth(), this.sld_w / 2 - 100, this.sld_h - 22, 200, 22);
var _loc4 = new TextFormat();
_loc4.align = "center";
_loc4.bold = true;
_loc4.font = "Arial";
_loc4.color = 8947848;
_loc4.size = 11;
this.slideshow.texto_txt.setNewTextFormat(_loc4);
this.slideshow.texto_txt.selectable = false;
this.slideshow.texto_txt.text = "Cargando...";
} // End of the function
function startSlideShow(Void)
{
slideshow.onEnterFrame = function (Void)
{
if (this.count >= this.owner.frames)
{
this.count = 0;
this.owner.cambiar();
_level3.efecto.cargando._visible = 0;
}
else
{
++this.count;
} // end else if
};
} // End of the function
function onLoadInit(target)
{
target._parent._visible = false;
target._parent._x = target._parent._parent.bound_mc._width / 2;
target._parent._y = target._parent._parent.bound_mc._height / 2;
target._x = target._width / -2;
target._y = target._height / -2;
if (++loading >= cargoDiapositivas.length)
{
startSlideShow();
} // end if
} // End of the function
function cambiar(Void)
{
if (aleatorio)
{
var _loc2 = rand(cargoDiapositivas.length, index);
interpolar(cargoDiapositivas[index], cargoDiapositivas[_loc2]);
index = _loc2;
}
else
{
var _loc3 = index++;
if (index >= cargoDiapositivas.length)
{
if (ciclico)
{
index = 0;
}
else
{
delete slideshow.onEnterFrame;
} // end if
} // end else if
interpolar(cargoDiapositivas[_loc3], cargoDiapositivas[index]);
} // end else if
this.slideshow.texto_txt.text = "";
} // End of the function
function interpolar(ini, fin)
{
fin.swapDepths(cargoDiapositivas.length);
var _loc2 = StringToEasing(movimiento);
switch (transicion)
{
case "arriba":
{
CambioArr(ini, fin, _loc2);
break;
}
case "abajo":
{
CambioAbj(ini, fin, _loc2);
break;
}
case "izquierda":
{
CambioIzq(ini, fin, _loc2);
break;
}
case "derecha":
{
CambioDer(ini, fin, _loc2);
break;
}
case "zoomv":
{
CambioZoomH(ini, fin, _loc2);
break;
}
case "zoomh":
{
CambioZoomV(ini, fin, _loc2);
break;
}
case "zoom":
{
CambioZoom(ini, fin, _loc2);
break;
}
case "fade":
{
CambioFade(ini, fin, _loc2);
break;
}
case "none":
default:
{
fin._visible = true;
ini._visible = false;
break;
}
} // End of switch
} // End of the function
function CambioFade(ini, fin, ease)
{
fin._visible = ini._visible = true;
new mx.transitions.Tween(fin, "_alpha", ease, 0, 100, 1.500000E+000, true);
var _loc1 = new mx.transitions.Tween(ini, "_alpha", ease, 100, 0, 1.500000E+000, true);
_loc1.onMotionFinished = function (o)
{
o.obj._visible = false;
};
} // End of the function
function CambioZoom(ini, fin, ease)
{
fin._visible = ini._visible = true;
new mx.transitions.Tween(fin, "_xscale", ease, 0, 100, 1.500000E+000, true);
new mx.transitions.Tween(fin, "_yscale", ease, 0, 100, 1.500000E+000, true);
new mx.transitions.Tween(ini, "_xscale", ease, 100, 0, 1.500000E+000, true);
var _loc4 = new mx.transitions.Tween(ini, "_yscale", ease, 100, 0, 1.500000E+000, true);
_loc4.onMotionFinished = function (o)
{
o.obj._visible = false;
};
} // End of the function
function CambioZoomH(ini, fin, ease)
{
fin._visible = ini._visible = true;
new mx.transitions.Tween(fin, "_yscale", ease, 0, 100, 1.500000E+000, true);
var _loc1 = new mx.transitions.Tween(ini, "_yscale", ease, 100, 0, 1.500000E+000, true);
_loc1.onMotionFinished = function (o)
{
o.obj._visible = false;
};
} // End of the function
function CambioZoomV(ini, fin, ease)
{
fin._visible = ini._visible = true;
new mx.transitions.Tween(fin, "_xscale", ease, 0, 100, 1.500000E+000, true);
var _loc1 = new mx.transitions.Tween(ini, "_xscale", ease, 100, 0, 1.500000E+000, true);
_loc1.onMotionFinished = function (o)
{
o.obj._visible = false;
};
} // End of the function
function CambioDer(ini, fin, ease)
{
fin._visible = ini._visible = true;
new mx.transitions.Tween(fin, "_x", ease, fin._width / -2, fin._parent.bound_mc._width / 2, 1.500000E+000, true);
var _loc3 = new mx.transitions.Tween(ini, "_x", ease, ini._parent.bound_mc._width / 2, ini._parent.bound_mc._width + ini._width / 2, 1.500000E+000, true);
_loc3.onMotionFinished = function (o)
{
o.obj._visible = false;
};
} // End of the function
function CambioIzq(ini, fin, ease)
{
fin._visible = ini._visible = true;
new mx.transitions.Tween(fin, "_x", ease, fin._parent.bound_mc._width + fin._width / 2, fin._parent.bound_mc._width / 2, 1.500000E+000, true);
var _loc3 = new mx.transitions.Tween(ini, "_x", ease, ini._parent.bound_mc._width / 2, ini._width / -2, 1.500000E+000, true);
_loc3.onMotionFinished = function (o)
{
o.obj._visible = false;
};
} // End of the function
function CambioArr(ini, fin, ease)
{
fin._visible = ini._visible = true;
new mx.transitions.Tween(fin, "_y", ease, fin._parent.bound_mc._height + fin._height / 2, fin._parent.bound_mc._height / 2, 1.500000E+000, true);
var _loc3 = new mx.transitions.Tween(ini, "_y", ease, ini._parent.bound_mc._height / 2, ini._height / -2, 1.500000E+000, true);
_loc3.onMotionFinished = function (o)
{
o.obj._visible = false;
};
} // End of the function
function CambioAbj(ini, fin, ease)
{
fin._visible = ini._visible = true;
new mx.transitions.Tween(fin, "_y", ease, fin._height / -2, fin._parent.bound_mc._height / 2, 1.500000E+000, true);
var _loc3 = new mx.transitions.Tween(ini, "_y", ease, ini._parent.bound_mc._height / 2, ini._parent.bound_mc._height + ini._height / 2, 1.500000E+000, true);
_loc3.onMotionFinished = function (o)
{
o.obj._visible = false;
};
} // End of the function
function rand(sup, norep)
{
norep = norep == undefined ? (-1) : (norep);
var _loc1;
do
{
_loc1 = Math.floor(Math.random() * sup);
} while (_loc1 == norep && sup > 1)
return (_loc1);
} // End of the function
function setArea(clip, w, h, color, alpha)
{
clip.clear();
clip.beginFill(color ? (color) : (0), alpha ? (alpha) : (0));
clip.moveTo(0, 0);
clip.lineTo(w, 0);
clip.lineTo(w, h);
clip.lineTo(0, h);
clip.endFill();
} // End of the function
function StringToEasing(aceleracion)
{
switch (aceleracion)
{
case "retroceso":
{
return (mx.transitions.easing.Back.easeOut);
break;
}
case "rebote":
{
return (mx.transitions.easing.Bounce.easeOut);
break;
}
case "elastico":
{
return (mx.transitions.easing.Elastic.easeOut);
break;
}
case "remarcado":
{
return (mx.transitions.easing.Strong.easeOut);
break;
}
case "normal":
default:
{
return (mx.transitions.easing.Regular.easeOut);
break;
}
} // End of switch
} // End of the function
var frames = 60;
var sld_x = -30;
var sld_y = -10;
var sld_w = Stage.width + 100;
var sld_h = Stage.height + 123;
var sld_mask = true;
var aleatorio = false;
var ciclico = true;
var transicion = "fade";
var movimiento = "remarcado";
var cargoDiapositivas;
var index = -1;
var loading = 0;
var cargador = new MovieClipLoader();
cargador.addListener(this);
var slideshow;
var misDiapositivas = new Array();
misDiapositivas.push("galeria/fotos/01.jpg");
cargarDiapositivas();
que esta espectacular, pero no tiene porcentaje de carga, yo se lo quisiera agregar pero no tengo idea como... ojalá me puedan ayudar, gracias.