Posted in

Llamada a una funcion mediante hipervínculo en texto

Como llamar a una función actionscript desde un hipervínculo contenido en un campo de texto.

function traceaTexto(este) {
trace(este);
}
this.createTextField("texto_txt", 1, 100, 100, 300, 100);
texto_txt.multiline = true;
texto_txt.html = true;
texto_txt.htmlText = "Esto es una prueba ";
texto_txt.htmlText += "<a href='asfunction:traceaTexto,Hello World!'>cojonuda</a>";

Deixa un comentari

L'adreça electrònica no es publicarà. Els camps necessaris estan marcats amb *


The reCAPTCHA verification period has expired. Please reload the page.