Skip to main content
Inspiring
November 26, 2013
Answered

Getting Error #2154 when the NetConnection is connected.

  • November 26, 2013
  • 1 reply
  • 1683 views

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 has been closed for replies.
Correct answer kglad

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.

1 reply

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.

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?

kglad
Community Expert
Community Expert
November 26, 2013

yes, exactly.