method execute

bool execute(event event);

Argumente

Zurückgegebener Wert

This method executes the given event object.
function onSample()
{
    var command = scene.getCommandById("myCmdId");
    if (command)
    {
        command.execute(null);
    }
}