public function videoPlayer()
{
connection = new NetConnection();
connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
connection.connect(null);
}
private function connectStream():void
{
stream= new NetStream(connection);
stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
stream.client = this;
stream.bufferTime = 30;
video = new Video(600,313);
video.attachNetStream(stream);
stream.play(vName);
addChild(video);
}
}
private function netStatusHandler(event:NetStatusEvent):void
{
trace(event.info.code);
}
Если воспроизведение видео закончилось, он не отслеживает информационный код "NetStream.Play.Stop"
. Почему?