tambien tengo la opcion del pprincipio que era creando un emptymopvie clip cargador que hiciera la carga haciendo fade
pero el problema es que en lugar de buscar en la carpeta img/ necesito que coja los datos del asp y poniendole aqui
Código :
this.cargador.loadMovie("img/imagen02.jpg");que lo coja de la base datos
foto1 = "img/" + imagen1;
no fuciona
me voy a volver loco
Código :
alfa = function (clip) {
this.createEmptyMovieClip("loop", 3);
loop.onEnterFrame = function() {
clip._alpha += 10;
if (clip._alpha>=100) {
delete loop.onEnterFrame;
}
};
};
this.createEmptyMovieClip("cargador",1);
this.createTextField("porcentaje",2,10,10,200,16);
this.cargador._x = 0;
this.cargador._y = 159;
this.ancho = 755;
this.alto = 400;
this.cargador.loadMovie("img/imagen02.jpg");
this.cargador._alpha = 0;
with (this) {
lineStyle(2, 0x000000, 100);
moveTo(this.cargador._x, this.cargador._y);
lineTo(this.cargador._x+this.ancho, this.cargador._y);
lineTo(this.cargador._x+this.ancho, this.cargador._y+this.alto);
lineTo(this.cargador._x, this.cargador._y+this.alto);
lineTo(this.cargador._x, this.cargador._y);
}
this.onEnterFrame = function() {
this.cargador.percent = (this.cargador.getBytesLoaded()/this.cargador.getBytesTotal())*100;
if (!isNan(this.cargador.percent)) {
this.porcentaje.text = Math.round(this.cargador.percent)+" %";
}
if (this.cargador.percent == 100) {
alfa(this.cargador);
this.porcentaje.removeTextField();
delete this.onEnterFrame;
}
};