3

I got this error when tring to implement Stream connection with meta info

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. at SS4uOpenplayer_fla::MainTimeline/frame2()

I implemented onBWDone function as like

meta.onBWDone=function(meta:Object){

}

meta.onMetaData = function(meta:Object)
{
}

But stil am getting the same error

2 Answers 2

9

You have to attach a "client" object on the NetConnection instance. The client contains references to necessary callback functions.

var nc:NetConnection = new NetConnection();

nc.client = { onBWDone: function():void{} };
1

or you can write onBWDone in the same class if you make this

nc.client=this

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.