@Toneo
To do it the way you want it you should make it like this:
code:
function myClass(){
this.var1 = ""
this.var2 = ""
this.method = function() {
beep();
}
this.method2 = otherfunc;
}
var myobj = new myClass;
myClass.method()
function otherfunc(){
Messenger.DisplayToast(""", "");
}
You can also find all the info you need right here :
MSDN Jscript Reference