method addEventHandler

bool addEventHandler(string event,string action);

Argumente

Zurückgegebener Wert

This function will add a reaction for a given event on this box. The handler for the event is specified by the "action" parameter. Neither the event or action parameter can be null nor empty. If either is, false is returned.
var box = scene.getBoxById("hoverBox");
if (box)
{
    box.addEventHandler("mouseOver", "onMouseOverHoverBox();");
}