ActionScript NetConnection Error #2044: Unhandled AsyncErrorEvent

I’m testing the Red5 server to see how to use it for audio and video streaming but right after testing the connection to the server, I get the following error message in my Output Panel (though the connection to the server has been established correctly):

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.

After digging around it seems that I didn’t specify the client for the NetConnection object:

netConnection.client = this;

After setting the client property, all was well. So don’t do the same mistake as I did.

4 thoughts on “ActionScript NetConnection Error #2044: Unhandled AsyncErrorEvent

  1. Hi!

    i was finding a solution for this error one day, and here i ve find the solution.

    Many thanks!

    ángel.

  2. For more examples of the client property, look in the ASDocs for NetConnection > the example at the bottom of the page for another example of how to use the client property.

    http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/net/NetConnection.html

    Also see the following events in the NetStream class, which are properties of the client object: onCuePoint, onDRMContentData, onImageData, onMetaData, onPlayStatus, onTextData, onXMPData
    http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/net/NetStream.html

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>