Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/06/2002, 07:53
abuenog
 
Fecha de Ingreso: julio-2001
Ubicación: Barcelona
Mensajes: 922
Antigüedad: 22 años, 10 meses
Puntos: 1
Re: detener funcion al acabar mc

Hola, q tal.

Pq no le pones un if dentro de la funcion para decirle que cuando llegue al 5 te devuelva el res. Seria algo asi:

Código:
 
function getVal(str){
_root.moviClip.valor = str;
_root.movieClip.play();
if (_root.movieClip._currentFrame()==5){
res = _root.movieClip.valor;
return res;
}
}
el currentFrame() exactamente no se como se escribe exactamente, pero buscalo y mira a ver si te funciona.

Ya me diras algo.

Saludos

<html><center><embed src="http://www.isencia.com/test/ninot.swf" height=125 width=360>
</embed></center></html>