Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/09/2007, 10:03
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 10 meses
Puntos: 406
Re: flv y swf y cuepoint

Hola whasho:
Aquí tu código corregido:
video_tmp="gota1 final1.flv"
var conexion:NetConnection = new NetConnection();
conexion.connect(null);
var stream:NetStream = new NetStream(conexion);
mi_video.attachVideo(stream);
stream.play(video_tmp);
//aseguramos 10 seg de reproduccion
stream.setBufferTime(10);
//
barra._xscale = 0;
onEnterFrame = function () {
bu_cargado.text = stream.bufferLength;
bu_trans.text = stream.time;
bu_total.text = Math.round(stream.bytesTotal/1024)/1000+" mb";
if(stream.time>=2&&stream.time<=3){
loadMovieNum("gota1.swf",1);

}
};
// sigue sin funcionar
//status
stream.onStatus = function(infoObject:Object) {
if (infoObject.code == "NetStream.Play.Stop") {
trace("acabo");
}
if (infoObject.code == "NetStream.Play.StreamNotFound") {
trace("encontro error");
}
};

Lo que está en negrita debe de estar dentro del onEnterFrame.

Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/