Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/06/2003, 14:59
rcl2121
 
Fecha de Ingreso: abril-2002
Mensajes: 36
Antigüedad: 22 años
Puntos: 0
Ayuda con efecto -HOLOGRAMA-

Este es el efecto
http://usuarios.lycos.es/rclweb/face.swf (btn derecho/reproducir)

y el Action script es


onClipEvent (load)
{
function doTransition()
{
var currClip = this["pic" + currNum];
var aboveClip = this["pic" + (currNum - 1)];
var tmpH = (currNum - 1) * maskHeight;
currClip._y = tmpH;
currClip._yscale = 100;
aboveClip._y = 0;
aboveClip._yscale = tmpH * 10;
currClip._visible = true;
aboveClip._visible = true;
currNum--;
if (currNum == 0)
{
tFinished = true;
} // End of the function
} // end if
function doStuff()
{
if (tFinished)
{
doTransition();
} // end if
if (done)
{
if (tFinished)
{
scanner.stop();
_level11.gotoAndPlay("further" + _parent.stage);
_parent.gotoAndPlay("further");
done = true;
} // End of the function
} // end if
} // end if
if (_level0.soundIsOn)
{
scanner = new Sound(this);
scanner.attachSound("scan");
scanner.start(0, 999);
} // end if
tFinished = false;
maskHeight = 10;
var tmpNum = 35;
for (i = 1; tmpNum >= i; i++)
{
this.attachMovie("pic", "pic" + i, i);
var tmpClip = this["pic" + i];
tmpClip._y = (i - 1) * maskHeight;
tmpClip.image._y = (i - 1) * -maskHeight;
tmpClip._visible = false;
} // end of for
currNum = 35;
}

onClipEvent (enterFrame)
{
doStuff();
}

// [onClipEvent of sprite 6 in frame 3]
onClipEvent (load)
{
function mover()
{
c = c * -1;
_y = _y + c
} // End of the function
c = 1;
}

onClipEvent (enterFrame)
{
mover();
}

// [onClipEvent of sprite 10 in frame 6]
onClipEvent (load)
{
tot = 58;
total = _parent.face._totalframes;
c = 0;
interval = 20;
talk = true;
switchIt = true;
}

onClipEvent (enterFrame)
{
if (talk)
{
if (switchIt)
{
_parent.face.gotoAndPlay(random(tot));
_parent.mask1.gotoAndPlay(random(tot));
switchIt = false;
c = 0;
} // end if
if (switchIt)
{
c++;
if (interval < c)
{
switchIt = true;
} // end if
} // end if
} // end if
if (talk)
{
if (switchIt)
{
_parent.face.gotoAndPlay(random(total - tot) + tot + 1);
_parent.mask1.gotoAndPlay(random(total - tot) + tot + 1);
switchIt = false;
c = 0;
} // end if
if (switchIt)
{
c++;
if (interval * 2 < c)
{
switchIt = true;
} // end if
} // end if
} // end if
}


PERO NO LO ENTIENDO
Alguien me puede orientar, con un ejemplo similar o mas simple
porfavor