Quería saber, tengo un flash personalizado, sin usar ningún componente del flash, sino todo hecho manualmente con diseño y todo, que carga FLVs.
Ahora, lo que quiero hacer es usar este único flash (swf) y que desde un link HTML cargue el FLV a ese flash. Estoy usando ASP.
No vi algo en los foros, o quizás no busqué bien... alguien puede darme una mano?
Les dejo el AS 2.0 que uso:
Código :
stop();
this.createTextField("tituloId", this.getNextHighestDepth(), 10, 10, 300, 22);
tituloId.html = true;
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream:NetStream = new NetStream(connection_nc);
stream.setBufferTime(10);
video_holder.attachVideo(stream);
stream.play("video.flv");
var buffer_interval:Number = setInterval(checkBufferTime, 100, stream);
function checkBufferTime(my_ns:NetStream):Void {
var bufferPct:Number = Math.min(Math.round(my_ns.bufferLength/my_ns.bufferTime*100), 100);
var output_str:String = "<textformat tabStops='[100,200]'>";
output_str += "Cargado: "+bufferPct+"%";
output_str += "</textformat>";
tituloId.htmlText = output_str;
}
bot_play.enabled = false;
bot_play._alpha = 50;
bot_play.onRelease = function() {
this.enabled = false;
this._alpha = 50;
bot_stop.enabled = true;
bot_stop._alpha = 100;
bot_pause.enabled = true;
bot_pause._alpha = 100;
stream.play("video.flv");
}
bot_stop.onRelease = function() {
this.enabled = false;
this._alpha = 50;
bot_pause.enabled = false
bot_pause._alpha = 50;
bot_play.enabled = true;
bot_play._alpha = 100;
stream.close();
stream.seek(0);
}
bot_pause.onRelease = function() {
this.enabled = true;
this._alpha = 100;
bot_stop.enabled = true;
bot_stop._alpha = 100;
bot_play.enabled = false;
bot_play._alpha = 50;
stream.pause();
}
Abrzos, gracias.
Emiliano
