Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Event Listener Creation

$
0
0
nicoriffwrote:

I´m trying to create a UDPClient from javascript but I cannot find the way to add the event to the object I´ve created on the javascript side and assign a callback function. Can someone help me with some simple sample code of how I can accomplish this?

We'd love to help, but we'd need more information. What kind of object (host or script) is the event source? What kind of object is the listener? How does the listener register itself with the source (or how would you like that to happen)? What host facilities are you exposing to the script engine? Some sample code could provide the necessary context.

Thanks!

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images