myVBox["height"] = 150; will work if a) myVBox has the height property or b) myVBox (VBox?) is a dynamic class.