method getBoxById

box getBoxById(string id);

Argumente

Zurückgegebener Wert

This method returns the box object associated with the given ID. Returns null if ID is not found.
function onSample()
{
    var button = scene.getBoxById("testButton");
    if (button)
    {
        button.setAttribute("label", "Label Changed");
    }
}