El problema es que el primer frame me sale un cuadrado negro, y yo quiero que el primer frame, salga la pelicula, en "pause" para que cuando pase el mouse por encima haga "play".
Mil gracias
Código ActionScript :
video_tmp="4.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);
stream.pause();
//
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";
};
//botones_-----------------------------------
btn1.onRollOver = function() {
stream.pause(video_tmp);
};
btn1.onRollOut = function() {
stream.pause();
//obvio, para hacer pausa, ojo q es lo mismo para avanzar
};
//status
stream.onStatus = function(infoObject:Object) {
if (infoObject.code == "NetStream.Play.Pause") {
trace("acabo");
}
if (infoObject.code == "NetStream.Play.StreamNotFound") {
trace("encontro error");
}
};
