# Flash Media Server 3 help

**URL:** <https://forum.kirupa.com/t/flash-media-server-3-help/262085>\
**Category:** flash\
**Created:** [June 3, 2008, 6:43am UTC](https://forum.kirupa.com/t/flash-media-server-3-help/262085 "2008-06-03T06:43:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TVM\_XST](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@TVM\_XST](https://forum.kirupa.com/u/TVM_XST)\
**Post date:** [June 3, 2008, 6:43am UTC](https://forum.kirupa.com/t/flash-media-server-3-help/262085/1 "2008-06-03T06:43:39Z")

</div>

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

```auto

  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

```auto

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

```

where viewerNS is the NetStream object of the viewer.
