Comunidad de diseño web y desarrollo en internet online

FLV + ASP

Citar            
MensajeEscrito el 09 Ene 2009 05:19 pm
Hola cristaleros,

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

Por boratlon

Claber

139 de clabLevel



 

chrome
Citar            
MensajeEscrito el 09 Ene 2009 05:26 pm

Por FeNtO

BOFH

5091 de clabLevel

18 tutoriales

1 ejemplo

  Bastard Operators From Hell

FeNtO DataCenter

firefox
Citar            
MensajeEscrito el 10 Ene 2009 06:07 pm
Gracias FeNtO, pero no... eso no me sirve... eso es para llamar a los flv desde el flash y no desde el asp... gracias igual...
Abrazos...

Hago una nueva consulta respecto a esto:
En el código tengo:

stream.play("video.flv");

en vez de "video.flv" puedo poner alguna variable para que levante del asp el nombre del flv al que llamo? cómo hago esto?
Gracias de nuevo, abrazos

Por boratlon

Claber

139 de clabLevel



 

firefox
Citar            
MensajeEscrito el 10 Ene 2009 06:21 pm
Busca en la ayuda de Flash "FlashVars"

Por The Fricky!

Presidente

6168 de clabLevel

3 tutoriales
8 articulos

Genero:Masculino   Bastard Operators From Hell Héroes

Piccola Venezia...

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.