Hi everyone, I have a very strange problem with playing video/audio through NetConnection.
Here is the code: ================================================== loadAudioFile(); function loadAudioFile(){ trace("inside") var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); tVid.attachVideo(stream_ns); // tVid is the video object name stream_ns.play("audio/audio.flv"); stream_ns.setBufferTime(15); stream_ns.onStatus = function(infoObject:Object) { trace("NetStream.onStatus called: ("+getTimer()+" ms)"); for (var prop in infoObject) { trace("\t"+prop+":\t"+infoObject[prop]); } trace(""); }; } ============================================================= This is a simple copy paste from the Flash help file. I am trying to play audio or video flash video file in the Flash IDE. Problem: I have to publish-republish(by clicking Ctrl+Enter more then two times in sequence) twice sometimes thrice to get audio/video events fired and start playing. System Config: Windows 2003 + Flash 8.0 & Windows 2000 Server + Flash 8.0. Can someone tells me what can be the reason? It was working prefectly fine in other application for me a day ago at same system Thanks Vivek _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com