Define public variable in main application for eg,
public var dataValue : String = "Hi";
Assign value to the dataValue in the SWC component file using FlexGlobals as:
FlexGlobals.topLevelApplication.dataValue = "Hello Friend";
Now, trace the value in the event handler in main application which handle event dispatched from SWC. Will get update value of dataValue.