Lu, So the only thing the fetchSharedData function is doing is dispatching an appEvent:ViewerContainer.dispatchEvent(new AppEvent(AppEvent.DATA_FETCH_ALL));
Which in turn dispatches this event:ViewerContainer.dispatchEvent(new AppEvent(AppEvent.DATA_SENT, dataTable));
in the DataManager.as.So from W1 dispatch this event:var data:Object =
{
key: key,
collection: arrayCollection
};
ViewerContainer.dispatchEvent(new AppEvent(AppEvent.DATA_PUBLISH, data));
and in the toc add this listener:ViewerContainer.addEventListener(AppEvent.DATA_PUBLISH, sharedDataUpdated);
Then just a function that handles the event:private function sharedDataUpdated(event:AppEvent):void
{
var data:Object = event.data;
if (data.key == "your Key Name")
{
//todo
}
}