
03-09-2007, 04:30 AM
|
|
Bowie's Deciple
|
 |
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
|
|
|
In all languages, when you call a funciton or procedure, you give them arguments
EG
this = that(var1,var2);
var1 and var2 are arguments
in a declaration, they are called paramaters
function that(passed1,passed2) {
whatever;
}
passed1 and passed2 are parameters.
When using triggeraction in gs2, you trigger something on the serverside, then the serverside function has
function onActionServerside(passed1,passed2) {
whatever;
}
however, in the case of a triggered function ONLY, you do not have to define the parameters, so if you did
function onActionServerside() {
and triggered it with parameters, since they were never given name, they will be referred to as param[0], param[1], etc |
__________________
|
|
|
|