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
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{} };
or you can write onBWDone in the same class if you make this
nc.client=this
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.