Ela*_*gan 3 streaming actionscript-3
在使用元信息实现Stream连接时,我遇到了这个错误
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()
我实现了onBWDone函数
meta.onBWDone=function(meta:Object){
}
meta.onMetaData = function(meta:Object)
{
}
Run Code Online (Sandbox Code Playgroud)
但是我得到了同样的错误
您必须在NetConnection实例上附加"客户端"对象.客户端包含对必要回调函数的引用.
var nc:NetConnection = new NetConnection();
nc.client = { onBWDone: function():void{} };
Run Code Online (Sandbox Code Playgroud)