My goal is to have "WidgetA" and "WidgetB" mutually exlusive (in fact really I only want to allow one widget open at a time). I found some code from RSchleitin's "widgets communications" thread that Robert posted to close one widget when another is opened:for each (var widgetId:Number in ViewerContainer.getInstance().widgetManager.getAllLoadedWidgetIds()) { if(ViewerContainer.getInstance().widgetManager.getWidget(widgetId).widgetTitle == "WidgetA") AppEvent.dispatch(AppEvent.WIDGET_CLOSE, widgetId); }Inserted above code into "WidgetB" it works great and closes "WidgetA" when "WidgetB" is opened. I put the same code in "WidgetA" (except exchanged for "WidgetB"). The problem is, if I open "WidgetB" ("WidgetA" closes), then open "WidgetA" again, both widgets remain open. Any ideas on why this doesn't work both ways?