# Help on Function and arguments

**URL:** <https://forum.kirupa.com/t/help-on-function-and-arguments/129400>\
**Category:** Uncategorized\
**Created:** [November 23, 2004, 7:29am UTC](https://forum.kirupa.com/t/help-on-function-and-arguments/129400 "2004-11-23T07:29:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![taniasu](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@taniasu](https://forum.kirupa.com/u/taniasu)\
**Post date:** [November 23, 2004, 7:29am UTC](https://forum.kirupa.com/t/help-on-function-and-arguments/129400/1 "2004-11-23T07:29:19Z")

</div>

Hi,

I refer this tutorial: [http://www.kirupa.com/developer/actionscript/functions.htm](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 = l_w_h;  
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
