# Flash media server and flex3

**URL:** https://forum.kirupa.com/t/flash-media-server-and-flex3/260812
**Category:** Uncategorized
**Created:** [May 20, 2008, 5:07am UTC](https://forum.kirupa.com/t/flash-media-server-and-flex3/260812 "2008-05-20T05:07:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![testmatrix](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@testmatrix](https://forum.kirupa.com/u/testmatrix)
#### Post date: [May 20, 2008, 5:07am UTC](https://forum.kirupa.com/t/flash-media-server-and-flex3/260812/1 "2008-05-20T05:07:13Z")

</div>

I want to connect to flash media server for a specific flv file… I am using rtmp://localhost/vod/sample. But is shows error “Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetConnection was unable to invoke callback onBWDone. error=ReferenceError: Error #1069: Property onBWDone not found on flash.net.NetConnection and there is no default value.”

Code:  
// Initialize net stream  
nc = new NetConnection();

```
        nc.addEventListener(NetStatusEvent.NET_STATUS,netStatusHandler);
        nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
        
        nc.connect ("rtmp://localhost/vod/sample");

```

When I use nc.connect(null); local flv resided in application folder is taken and playing properly.

I have installed coldfusion in localhost and wamp in local host …port is different…80 and 81.

For flash media server i have kept default port i.e. 1935/1111.

Flash media server is installed in windows and In same mc I am using… If i rum a vod applicaiton from flash media server its working properly.

I am using flex 3.

Any help is appreciated.
