Table of Contents Previous topic Next topic
Every object that generates events supports the two functions addEventListener() and removeEventListener().
Each of these functions takes three parameters. The first parameter is a string representing the event name and the second parameter is the name of the event handler function. The third parameter is not currently used and, for future compatibility, should preferably be false.
jState.core.addEventListener("afterstep", afterStep, false);
(The jState code creation wizards are able to generate the addEventListener() code for every supported event.)
jState.core.removeEventListener("afterstep", afterStep, false);