Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/01/2012, 10:19
Avatar de ceaped
ceaped
 
Fecha de Ingreso: febrero-2004
Mensajes: 2.185
Antigüedad: 20 años, 2 meses
Puntos: 9
Pregunta enlace HTML a fotogramas me da error

Buenos días
Seguí un tutorial de http://www.codigoactionscript.org/ej...#comment-26863

Pero este código me da un error:

Cita:
1067: Implicit coercion of a value of type String to an unrelated type Number.
Cita:
stop();

texto.htmlText="Troiae qui <a href='event:1'>primus</a> ab oris Italiam, fato <a href='event:2'>profugus</a>, Laviniaque venit litora, multum ille et terris <a href='event:3'>iactatus</a> et alto vi superum saevae memorem Iunonis ob iram";

texto.addEventListener(TextEvent.LINK,clica);

function clica(event:TextEvent) {

var accion:Number=event.text;

switch (accion) {
case 1 :
gotoAndStop(5);
break;
case 2 :
gotoAndStop(10);
break;
case 3 :
gotoAndStop(15);
break;
}
}
Que fallo tiene?

Gracias por su ayuda
__________________
Diseñador Gráfico publicitario