Flash Media Server 3 help

Hi

I have two SWF Publisher and Viewer.Publisher is the server application.I want to send text from Publisher to Viewer via Flash Media Server. I used the following AS3 code


  ns.send("t_Handler","Hello Client");

where ns is NetStream object

how to write handler function “t_Handler” in Viewer inorder to get the string “Hello Client”

I wrote like this


 
  viewerNS.t_Handler = function(str:String) 
  {
    trace(str);
  }
 

where viewerNS is the NetStream object of the viewer.