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

MP3 in AS3

New Here ,
Jul 24, 2009 Jul 24, 2009

hi all,

i am trying to create an MP3 player using AS3. when i competed my server-side and client-side coding i ran it. MP3 plays not more than 5 seconds and there occures a reference error.(ReferenceError: Error #1069: Property onPlayStatus not found on flash.net.NetStream and there is no default value.). what are the reasons for that errors? can i overcome it?

thanking all,

Dhanu.

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
Explorer ,
Jul 28, 2009 Jul 28, 2009

Try creating a seperate client object on NetStream (rather than using the default client which is the NetStream object itself) and then add the onPlayStatus function to that object.

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
Enthusiast ,
Jul 28, 2009 Jul 28, 2009
LATEST

I found these bits of info when I looked up onPlayStatus

onPlayStatus is dispatched when the NetStream object has completely played a stream.  This event is intended for use with Flash Media Server;

I think if you're not using a Flash Media Server you shouldn't be using onPlayStatus.  I'm not very experienced in this area so take it for what it's worth.

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