I want to pass some parameters into a function, modify them, and have the values pused back to the caller. is this possible?
function changeVars(x:Number, y:Number)
x = x + y;
var mainx:Number = 3;
var mainy:Number = 2;
var mainz:Number = changeVars(mainx,mainy);
the values should now be:
Keep in mind this is just a simplistic example. I could also get away with using a global variable, but I couldn't seem to get it to work.