AppEvent.addListener(AppEvent.DATA_SENT, sharedDataUpdated2); fetchSharedData();
AppEvent.addListener(AppEvent.DATA_PUBLISH, sharedDataUpdated); AppEvent.addListener(AppEvent.DATA_SENT, sharedDataUpdated2); fetchSharedData();
var msArr:ArrayCollection = new ArrayCollection(); msArr.addItem("export"); addSharedData("Legend_exportImage",msArr);
var id:Number = ViewerContainer.getInstance().widgetManager.getWidgetId("Your Widget"); var bWidget:IBaseWidget = ViewerContainer.getInstance().widgetManager.getWidget(id,true) as IBaseWidget; x = bWidget.yourPublicVar;