Forum Discussion
JuanjoHaro
9 years agoCommunity Member
How to send and receive variables with Javascript?
Hi... first, i have no knowledge of coding javascript. I'm looking for tutorials about just a simple: get a variable from a function in javascript and send a variable using another funcion and i can...
JuanjoHaro
9 years agoCommunity Member
Hi, thanks for answer...
I'm totally numb at coding :( This code must be writting in a "execute javascript trigger" or in a js file?
Wich I can't see is where to put the function in js who send the variable and receive... and wich code is in the triggers as i do in flash
Flash:
import flash.external.ExternalInterface;
var devolucion = ExternalInterface.call("completarCurso",indice);
JS file
function completarCurso(numModActual)
{
//alert("num apartado="+ numModActual);
// do sometething
}
I just call the function from flash to send or get the variable from the js... i can't inderstand how to do that in Storyline... that's what i don't know how to place your code