Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/04/2007, 07:56
Rizzo
 
Fecha de Ingreso: septiembre-2006
Mensajes: 1.193
Antigüedad: 17 años, 6 meses
Puntos: 30
Re: Parar flash cuando flv acabe

Código:
var conexion:NetConnection = new NetConnection();
conexion.connect(null);
var stream:NetStream = new NetStream(conexion);
mi_video.attachVideo(stream);
stream.play("video.flv");
//aseguramos 10 seg de reproduccion
stream.setBufferTime(10);
onEnterFrame = function () {
	bu_cargado.text = stream.bufferLength;
	bu_total.text = Math.round(stream.bytesTotal/1024)/1000+" mb";
};
stream.onStatus = function(infoObject:Object) {
	if (infoObject.code == "NetStream.Play.Stop") {
		stream.seek(0)//va al segundo 0
		stream.pause();//lo pausa
		trace("acabo");
	}
}; 
si quieres mas ayuda primero usa el buscador del foro y ve a las preguntas frecuentes sino esta lo que ebucas preguntas.

y sobre video lee esto:

http://www.eldervaz.com/guia_flv.htm
http://www.eldervaz.com/guia_flv2.htm