I posted this earlier in the 3.0 Forum by mistake. I’m using 2.0. Sorry.
I’m just getting into this and can’t seem to make the simplest thing work! I’m trying to learn to define and call functions. Can someone please tell me what’s wrong with the following? I get no errors but it won’t trace the variable:
//define and fill a variable
var name = “jim”
//define a function
function traceTheName ():Void{
trace (name);
}
//call a function
TraceTheName();