function onSample() { var button = scene.getBoxById("testButton"); if (button) { button.setAttribute("label", "Label Changed"); } }