开发者

AS3 NetStatusEvent events not triggered

开发者 https://www.devze.com 2023-01-12 11:02 出处:网络
NetStatusEvent has only one type of event: NetStatusEvent.NET_STATUS; but it comes with many codes for various cases.

NetStatusEvent has only one type of event: NetStatusEvent.NET_STATUS; but it comes with many codes for various cases.

Here they are, listed.

However, a lot of them are not triggered for me. I know some are FMS specific but I'm talking about "NetStream.Play.Stop", "NetStream.Pause.Notify" or "NetStream.Unpause.Notify开发者_运维问答".

Is there a case when they shouldn't be triggered, even though I'm calling NetStream's control functions (which take effect), or a known issue around this matter?

Thanks!


Without seeing your code it's hard to guess.

Maybe check the obvious first: are you sure you added a listener to the NetStream instance? Since both NetConnection and NetStream dispatch NetStatusEvent you may have only added the listener to your NetConnection instance.

0

精彩评论

暂无评论...
验证码 换一张
取 消