close netSream fails
hi
i have event listener in the main function:
netStream.addEventListener(NetStatusEvent.NET_STATUS, statusUpdated);
and function as follows:
public function statusUpdated(e:NetStatusEvent):void
{
trace(e.info.code)
switch (e.info.code)
{
case "NetStream.Play.Stop":
video.clear();
gotoAndStop(1)
break;
}
}
however i get the following error:
ReferenceError: Error #1069: Property onPlayStatus not found on Main and there is no default value.
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetStream was unable to invoke callback onPlayStatus. error=ReferenceError: Error #1069: Property onPlayStatus not found on Main and there is no default value.
at Main()[/Users/test/Desktop/add_complete/Main.as:408]
NetStream.Buffer.Empty
need assistance
thanks