property type

(r/w) string type;

Typ

Zugriff

This property sets and gets the type of the event.
function onSample()
{
    var myBox = scene.getBoxById("myBox");
    var factory = shell.factory;
    var event = (factory) ? factory.createEvent(myBox) : null;
    if (event)
    {
        event.type= "myCustomEvent";
        var box = scene.getBoxById("anotherBox");
        if (box)
        {
            box.dispatchEvent(event);
        }
    }
}