Foros del Web » Creando para Internet » Flash y Actionscript »

X fa Ayuda con este Codigo FadeIn - Fade Out

Estas en el tema de X fa Ayuda con este Codigo FadeIn - Fade Out en el foro de Flash y Actionscript en Foros del Web. Amigos nesecito ayuda con este codigo que no me quiere funcionar. this.pathToPics = "imagenes/"; this.pArray = ["img1.jpg", "img2.jpg", "img3.jpg", "img4.jpg"]; this.fadeSpeed = 5; this.pIndex = ...
  #1 (permalink)  
Antiguo 30/12/2006, 16:05
 
Fecha de Ingreso: junio-2006
Mensajes: 63
Antigüedad: 17 años, 9 meses
Puntos: 0
X fa Ayuda con este Codigo FadeIn - Fade Out

Amigos nesecito ayuda con este codigo que no me quiere funcionar.

this.pathToPics = "imagenes/";
this.pArray = ["img1.jpg", "img2.jpg", "img3.jpg", "img4.jpg"];
this.fadeSpeed = 5;
this.pIndex = 0;
loadMovie(this.pathToPics+this.pArray[0], _root.photo);
muestra = "Foto Nº"+(this.pIndex+1)+" "+this.pArray[0];
MovieClip.prototype.changePhoto = function(d) {
this.pIndex = (this.pIndex+d)%this.pArray.length;
if (this.pIndex<0) {
this.pIndex += this.pArray.length;
}
this.onEnterFrame = fadeOut;
};
MovieClip.prototype.fadeOut = function() {
if (this.photo._alpha>0+this.fadeSpeed) {
this.photo._alpha -= this.fadeSpeed;
} else {
this.loadPhoto();
}
};
Movieclip.prototype.loadPhoto = function() {
var p = _root.photo;
p._alpha = 0;
p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);
muestra = "Foto Nº"+(this.pIndex+1)+" "+this.pArray[this.pIndex];
this.onEnterFrame = loadMeter;
};
MovieClip.prototype.loadMeter = function() {
var i, l, t;
l = this.photo.getBytesLoaded();
t = this.photo.getBytesTotal();
if (t>0 && t == l) {
this.onEnterFrame = fadeIn;
} else {
trace(l/t);
}
};
MovieClip.prototype.fadeIn = function() {
if (this.photo._alpha>0+this.fadeSpeed) {
this.photo._alpha += this.fadeSpeed;
} else {
this.photo._alpha = 100;
this.onEnterFrame = null;
}
};


Se lo agradeceria mucho.
  #2 (permalink)  
Antiguo 30/12/2006, 18:22
Avatar de Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Re: X fa Ayuda con este Codigo FadeIn - Fade Out

Hola edsedx4:
Cuál es el problema?
El código está bien.

Podrías ser más explícito.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:24.