
07/02/2008, 15:32
|
 | Moderador | | Fecha de Ingreso: julio-2003 Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 21 años, 7 meses Puntos: 406 | |
Re: galeria foto Haz cometido 2 errores:
En éstas líneas:
MovieClip.protoype.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;
};
lo que está en negrita debe ser así prototype,
En éstas líneas también haz cometido el mismo error:
MovieClip.protoype.fadeIn=function(){
if(this.photo._alpha<100-this.fadeSpeed){
this.photo._alpha+=this.fadeSpeed;
}else{
this.photo._alpha=100;
this.onEnterFrame=null;
}
};
Tienes que tener más cuidado al escribir los códigos.
Espero haberte sido de ayuda. |