Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/07/2010, 16:20
cstudio
 
Fecha de Ingreso: julio-2009
Mensajes: 74
Antigüedad: 14 años, 9 meses
Puntos: 5
Respuesta: Pasar a siguiente video FLV

Si lo cargas con MediaplayBack:

nombre_de_instancia.contentPath = "tuvideo.flv";
nombre_de_instancia.addEventListener("complete", movie);
function movie() {
nextFrame();
}
stop();


Si lo cargas son simbolo de video y AS:

var conexion:NetConnection = new NetConnection();
conexion.connect(null);
var stream:NetStream = new NetStream(conexion);
nombredelsimbolovideo.attachVideo(stream);
stream.play("tuvideo.flv");
//aseguramos 10 seg de reproduccion
stream.setBufferTime(10);
stream.onStatus = function(infoObject:Object) {
if (infoObject.code == "NetStream.Play.Stop") {
nextFrame();

}
if (infoObject.code == "NetStream.Play.StreamNotFound") {
trace("encontro error");
}
};
stop();


la accion nextFrame puedes cambiarla por un goto si quieres que se regrese o bien un tercer frame con goto para que lo envia al primer frame.


Un saludo y espero te sirva.