method setStyle

bool setStyle(string name,string value);

Argumente

Zurückgegebener Wert

This method sets the value for a given style attribute. If either name or value is an empty string the method will fail. The format of the value string is dependent on the style attribute that is being set.
var bx = scene.getBoxById("bkGrndBx");
if (bx)
{
    bx.setStyle("fill", "red");
}