setPropertiesFromJSON - childComponents
-
Can I not use the childComponents attribute when doing setPropertiesFromJSON, like this:
Content.setPropertiesFromJSON( "BckBack",{"x": 190,"y": 210,"width": 650,"height": 500, "itemColour": "0xFF000000", "itemColour2": "0xFF000000", "borderSize": 1.0, "childComponents": [ { "type": "ScriptLabel", "id": "LFOBackLabel1","x": 157.0, "y": 73.0, "parentComponent": "BckBack", "fontName": "Gobold Thin", "textColour": "0xFFAAAAAA", "text": "Speed", "height": 14.0,"width": 40.0, "editable": "0" }, { "type": "ScriptLabel","id": "LFOBackLabel2", "x": 211.0,"y": 73.0, "parentComponent": "BckBack", "fontName": "Gobold Thin", "textColour": "0xFFAAAAAA", "text": "Fade In", "height": 14.0, "width": 44.0,"editable": "0" } ] });
I get a component but none of its children show up... or am I just doing it wrong?