This function will make the Dekho client broadcast a custom message to any applications that are listening to the Dekho client. This function does not return a value.

*This can also be done by the module using ActionScript’s ExternalInterface class to call a custom Javascript function or the LocalConnection class to call other Flex apps (both are called with this function). However if you also want the session id you will have to use the getSessionInformation function and add it yourself.

Example call

To call the function from a module:

parentApplication.broadcast( message );

Where message is a string to broadcast and the current client session id will automatically be appended to the message before the actual broadcast occurs, example:

var message : String = “customeventtobroadcast”;

Example result