View Single Post
  #51  
Old 04-29-2009, 08:53 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
I've noticed on the clientside if you join a class clientside you can't use the functions from the class right away.

ex:

PHP Code:
//class: whatever
//#CLIENTSIDE
function somefunc() {
  echo(
"!");

Then doing following..

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
join("whatever");
  
somefunc(); // the somefunc in the class would not actually be called..
  
this.trigger("WildEvent"""); // so I would use a trigger..
}

function 
onWildEvent() {
  
somefunc(); // and ! would be displayed in F2

__________________
Quote:
Reply With Quote