MP3 in AS3
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.

