felipEx
Scripting Contest Winner
Posts: 378 Reputation: 24
35 / /
Joined: Jun 2006
|
RE: Script Classes
it works fine here:
code: var MyClass = {
"MyVar" : new String(),
"MyVar2" : new Boolean(),
"MyMethod" : function() {
MsgPlus.DisplayToast("", "=]");
}
}
function OnEvent_Initialize(MessengerStart)
{
var a = MyClass;
var b = MyClass;
a.MyVar2 = false;
a.MyVar = " =] ";
Debug.Trace(a.MyVar);
Debug.Trace(a.MyVar2);
a.MyMethod();
b.MyMethod();
}
|
|