Admin wrote:
Hi!, this is my first post, i hope i can from here be part of this community, ok here is my question:
im using a FLV as intro for a webpage, so, i want to preload or do the buffering and then start to run, im using this code
buffer_txt.html = true;
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
stream_ns.setBufferTime(15);
myPlayer.attachVideo(stream_ns);
stream_ns.play("http://www.feedbackestudio.com/2m/demo4.flv");
var buffer_interval:Number = setInterval(checkBufferTime,100, stream_ns);
function checkBufferTime(my_ns:NetStream):Void {
var bufferPct:Number = Math.min(Math.round(my_ns.bufferLength/my_ns.bufferTime*100), 100);
var output_str:String = "";
output_str += "Buffering "+bufferPct+"%";
output_str += " ";
buffer_txt.htmlText = output_str;
}
and it works well, but what i want is to do some action when the movie ends. somebody have the code to do that?
thanx for your help!, and excuse my english im from argentina we speak spanish here
im using a FLV as intro for a webpage, so, i want to preload or do the buffering and then start to run, im using this code
buffer_txt.html = true;
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
stream_ns.setBufferTime(15);
myPlayer.attachVideo(stream_ns);
stream_ns.play("http://www.feedbackestudio.com/2m/demo4.flv");
var buffer_interval:Number = setInterval(checkBufferTime,100, stream_ns);
function checkBufferTime(my_ns:NetStream):Void {
var bufferPct:Number = Math.min(Math.round(my_ns.bufferLength/my_ns.bufferTime*100), 100);
var output_str:String = "
output_str += "Buffering "+bufferPct+"%";
output_str += "
buffer_txt.htmlText = output_str;
}
and it works well, but what i want is to do some action when the movie ends. somebody have the code to do that?
thanx for your help!, and excuse my english im from argentina we speak spanish here
Posted in Flash Application and Games Development |
Leave a Comment




