Hi,
I refer this tutorial: http://www.kirupa.com/developer/actionscript/functions.htm
In the following function, I have a doubt on the parameter ‘answer’. How to specify that this is input, output or both? I assume, when nothing is mentioned, it is input parameter which is passed into the function.
voluminatorizer = function (answer) {
l = lnt;
w = wt;
h = ht;
the_volume = lwh;
return the_volume;
};
submit.onRelease = function() {
text_answer = voluminatorizer(answer);
};
My question is if ‘answer’ is not used inside the function, why to code it? For returning computed value from the function, is it really reqd? How does flash know whether this is input or output ?
Thank you,
Taniasu