Thread: Question
View Single Post
  #3  
Old 03-09-2007, 04:30 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
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
__________________
Reply With Quote