ActionScript - ayuda as2

 
Vista:
sin imagen de perfil

ayuda as2

Publicado por mauricio (1 intervención) el 23/12/2010 02:22:47
Muchachos como estan?? tengo un problema y es el siguiente:

Tengo el siguiente codigo en as2 que consiste en un cambio de fotos pero usa un cambo de alpha, ese es el que quiero quitar y cambiar las imagenes sin ese alpha, sino unicamente que pase a la img2, necesito que me ayuden por favor!!! se me va a dañar la navidad:S

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>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;
}
}

No incluyo el codigo de los botones.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

propuesta laboral

Publicado por MARINA (1 intervención) el 27/12/2010 20:49:43
Chicos,/as les cuento que estamos buscando actionscripts developers para importantes empresas en capital federal. Si están interesados les pido que me mandes tu cv así les cuento un poco las propuestas que se adecuen a sus perfiles.
Espero sus respuesta.
Gracias.
Marina Giacopetti
[email protected]
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar