的Adobe Cirrus的直连&QUOT错误;物业startTransmit上flash.net.NetStream在&QUOT没有发现; [英] Adobe Cirrus Error on Direct Connect"Property startTransmit not found on flash.net.NetStream"

查看:257
本文介绍了的Adobe Cirrus的直连&QUOT错误;物业startTransmit上flash.net.NetStream在&QUOT没有发现;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:

ReferenceError: Error #1069: Property startTransmit not found on flash.net.NetStream and there is no default value.

我已经与卷云很多次才打了四周,还没有之前看到这个错误。但现在我不能让它消失。

I've played around with cirrus plenty of times before and have yet to see this error before. But now I cant get it to go away.

我的点对点直连的伟大工程只是罚款。但是每一次我看到这个错误弹出。它抛出一个异常。我想不通的地方也正是发生。

My p2p Direct connect works great just fine. But every single time i see this error pop up. It throws an exception. I can't figure out where it's exactly happening.

有没有人遇到过吗?任何想法我应该在哪里看?

Has anyone encountered this before? Any ideas where I should look?

推荐答案

每一个客户对象需要定义以下功能。

Every client object needs to have the following functions defined.

client.stopTransmit=function($p1:*,$p2:*):void{
    trace("stopTransmit called",$p1,$p2);
}
client.startTransmit=function():void{
    trace("startTransmit called");
}

例如,在 onPeerConnect 功能设置这些:

For example, set these in the onPeerConnect function:

sendStream.client = new Object();
sendStreamClient.onPeerConnect = function(subscriber:NetStream): Boolean{
    var client:Object=new Object();
    client.stopTransmit=function($p1:*,$p2:*):void{
        trace("stopTransmit called",$p1,$p2);
    }
    client.startTransmit=function():void{
        trace("startTransmit called");
    }
    subscriber.client=farStreamClient;
}

此外,这些需要被你sendStreamClient的客户端设置属性:

Additionally these need to be set on your sendStreamClient's client property:

sendStreamClient.client.stopTransmit=function($p1:*,$p2:*):void{
    trace("stopTransmit called",$p1,$p2);
}
sendStreamClient.client.startTransmit=function():void{
    trace("startTransmit called");
}

和他们需要你的recieveStreamClient的客户端设置属性。

And they need to be set on your recieveStreamClient's client property.

这篇关于的Adobe Cirrus的直连&QUOT错误;物业startTransmit上flash.net.NetStream在&QUOT没有发现;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆