property ignoreEvents

(r/w) bool ignoreEvents;

Typ

Zugriff

This property sets and gets the ignore events flag. If this property is true it will prevent the box and its descendants from handling mouse and key events. The mouse events would simply pass through the box, and key events will will be ignored evaporate if the box is focused.
function OnOffBtnClicked()
{
    // since we are turning things off...
    // we are going to prevent our box from responding to any type of events
    // as well as sending events.
    var bx = scene.getBoxById("specialBox");
    if (bx)
    {
        bx.blockEvents = true;
        bx.ignoreEvents = true;
    }
}