Sounds like a mess to me ;)
No honestly, I think nobody can give you an answer on this without a
core code snippet from you side.
Try to call something like this on the end of the previous vid:
private function RESET():void {
if (video.stage) {
video.attachNetStream(null)
video.clear()
}
if (stream) {
stream.close();
}
and when you want to play the new video
private function newStream(streamUrl):void {
RESET()
stream =* new NetStream(*connection);
stream.bufferTime = 5;
stream.addEventListener(NetStatusEvent.NET_STATUS,
netStatusHandler);
stream.client = this;
video.attachNetStream(stream);
stream.play(streamUrl);
}
Latcho
Carl Welch wrote:
Hi all!
My client asked me to build a video player with a play list. I'm
building it with AS3. The player works fine when I load the first
movie... but when I try to play another, the old video seems to keep
loading. I've been trying to .close() the video, netstream and the
URLRequest when I call a new video, but nothing seems to work
properly. Can anyone point me in the right direction? thanks.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders