This optional function resides at the top level of the custom tool. It is only required if you want the custom tool to be notified of any changes in Dekho or do not want to hardcode the tools name, which is used by Dekho to unload the custom tool. This function must be declared as a public function and will receive one string parameter. See the Broadcast section in this document for the list of possible broadcast values.

Example of function

public function messageFromDekho( message : String ) : void {

       var event : String = message.split(",")[0];

       var session : String = message.split(",")[1]; "Event: " + event + "\nSession Id: " + session , "Message from Dekho" );


Example result