Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/05/2010, 03:30
kitune
 
Fecha de Ingreso: julio-2005
Mensajes: 275
Antigüedad: 19 años, 8 meses
Puntos: 3
como lanzar evento al terminar de reproducir video

Hola a todos,

Tengo un video que se carga por streaming, quiero mostrar un clip cuando el video termine, pero no se como hacerlo...

El codigo que tengo ahora mismo para mostrar el video es:


Código Javascript:
Ver original
  1. var nc:NetConnection = new NetConnection();
  2.     nc.connect(null);
  3.     var ns:NetStream = new NetStream(nc);
  4.     ns.setBufferTime(1);
  5.     // Loop code goes here
  6.     ns.onStatus = function(info) {
  7.         if (info.code == "NetStream.Play.Stop") {
  8.             ns.seek(0);
  9.         }
  10.     };
  11.     myVideo.attachVideo(ns);
  12.     ns.play("http://xxx.es/cabecera.flv");

Un saludo y muchas gracias!