Flash media server and flex3

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.