Ver Mensaje Individual
  #13 (permalink)  
Antiguo 31/10/2008, 07:10
Latino31
 
Fecha de Ingreso: octubre-2008
Mensajes: 1
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Album De Fotos En Flash !!

Estimado Bandit, he tratado de hacer el FADE IN FADE OUT, con las instrucciones en tu pagina, soy bastante novato en flash, quisiera saber que hice mal, ya que solo carga la primera foto y luego se queda estancado y no avanza....a continuacion escribo lo que escribi en flash y no funcionó, quizas puedas ver donde esta el error y decirme, gracias...

this.pathToPic="imagenes/";
this.pArray=["img1.jpg","img2.jpg","img3.jpg","img4.jpg","img5. jpg","img6.jpg","img7.jpg","img8.jpg","img9.jpg"," img10.jpg"];
this.fadeSpeed = 5;
this.pIndex = 0;
loadMovie(this.pathToPic+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.loadPhoto=function(){
if(this.photo._alpha>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=fadeln;
}else{
trace(l/t);
}
};
MovieClip.prototype.fadeln=function(){
if(this.photo.alpha<100-this.fadeSpeed){
this.photo._alpha+=this.fadeSpeed;
}else{
this.photo._alpha=100;
this.onEnterFrame=null;
}
};