Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Getting Error #2154 when the NetConnection is connected.

Explorer ,
Nov 26, 2013 Nov 26, 2013

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.

TOPICS
ActionScript
1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 26, 2013 Nov 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
Community Expert ,
Nov 26, 2013 Nov 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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 26, 2013 Nov 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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 26, 2013 Nov 26, 2013

yes, exactly.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 03, 2013 Dec 03, 2013

Great!  I'm still sort of exploring the details of this, but it looks like there's a couple of events in which any of them would work.  Thanks, man.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 03, 2013 Dec 03, 2013
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines