Obviously I'm new to as3...Can someone please explain to me how I can use the variable from one function in another function?
For example:
function init():void {
var test:Number = 1;
}
init();
trace(test);
I get an error:
1120: Access of undefined property test.