var bx = scene.createBox("customBoxType"); if (bx) { // setup attributes on the box. bx.flowed = true; // ... }