文件名称:NetConnection_和_NetStream_
文件大小:5KB
文件格式:TXT
更新时间:2018-05-05 05:20:19
flash as3.0
NetConnection 和 NetStream 的状态检测 ================================================================ nc = new NetConnection(); nc.connect("rtmp://"+host+"/"+dir+"/"+name); //---------------------------显示连接状态---------------------------// nc.onStatus = function(info) { if (info.code == "NetConnection.Call.Failed") { trace("连接状态: "+info.code); trace("NetConnection.call方法调用服务器端的方法或命令失败"); } else if (info.code == "NetConnection.Connect.AppShutdown") { trace("连接状态: "+info.code);