A widget can be closed using something like this:for each (var widgetId:Number in ViewerContainer.getInstance().widgetManager.getAllLoadedWidgetIds()) { if(ViewerContainer.getInstance().widgetManager.getWidget(widgetId).widgetTitle == "widget title") AppEvent.dispatch(AppEvent.WIDGET_CLOSE, widgetId); }My question: how can this same thing be done for a 'widget' in the 'UI elements' section of config.xml. I used the test open/close widget and found out that these UI elements are not considered widgets at all and the above code does not work for widgets placed in this section....thanks!