Skip to main content
Inspiring
November 26, 2013
Answered

Getting Error #2154 when the NetConnection is connected.

There's a certain line of code in which I keep getting this error when trying to access a NetStream's info or soundTransform property, at least when using RTMP connections.  The problem?  It even happens when the NetConnection is successfully connected and has not lost its connection, but all the documentation says about it is that it "may be due to a failed NetConnection".  What else could be causing the problem?  Thanks.

This topic is closed to new replies. Start a new post to keep the conversation going.
kglad
kgladCorrect answer
Community Expert
November 26, 2013

are you checking for success of your netstream before trying to access its properties?

if you think you are, show your code.  if you're not, fix that.

5 replies

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
November 26, 2013

are you checking for success of your netstream before trying to access its properties?

if you think you are, show your code.  if you're not, fix that.

Translate
Inspiring
November 26, 2013

Not the NetStream itself, just the NetConnection.  Do I need to wait until I get NetStream.Connect.Success event back from the NetStream or something?

Translate
kglad
Community Expert
Community Expert
November 26, 2013

yes, exactly.

Translate