PDA

View Full Version : NetStream.Play.StreamNotFound not working


franklaval
12-02-2005, 04:05 AM
The fonction NetStream.Play.StreamNotFound whit flash media server is not working please help

main_nc = new NetConnection();
main_nc.connect("rtmp://localhost/video/");
myns = new NetStream(main_nc);

myvideo.deblocking=2;
myvideo.smoothing = true;
myvideo.attachVideo(myns);
myns.onStatus = function(infoObjectbject) {
if (infoObject.code == "NetStream.Play.StreamNotFound") {
_root.gotoAndPlay("bad");
}


};
myns.play("webcam9");
stop();


I want to do if stream fails go to frame bad

Do i ave to create sommething special in my main.asc or my script is not good how to please??