That's kind of vague, but here's a live example of catchevent.
PHP Code:
//#CLIENTSIDE
function onCreated() {
catchEventTest();
}
function catchEventTest() {
new GuiButtonCtrl("HelloWorldButton") {
x = y = 0;
width = screenwidth;
height = screenheight;
text = "Hello World!";
thiso.catchevent(this.name, "onAction", "onHelloWorldPressed");
}
}
function onHelloWorldPressed(obj) {
player.chat = format("Good bye %s!", obj.name);
obj.destroy();
}
Also right align the result, and you'll be gr8.