Comunidad de diseño web y desarrollo en internet online

Ayuda con insertar vídeos de You Tube en Flash!!!!!!!!!!!!!

Citar            
MensajeEscrito el 13 Ago 2009 06:16 am
Hola amigos!!

El siguiente código es el que utilizo para insertar los vídeos de You Tube en nuestra página web:

//Asi creamos el video para cargar.
this.createEmptyMovieClip("mc_vacio", "mc_vacio", 2);
this["mc_vacio"].loadMovie("http://www.youtube.com/v/VKEOFVCqZZY");
// y asi se destruye
this["mc_vacio"].destroy();


Sin embargo tenemos un ENORME duda, como hacemos con dicho código para ajustar, cambiar o reducir el tamaño de la ventana de vídeo de You Tube???

MIL Gracias por la ayuda.

Por contigocamilosesto

6 de clabLevel



 

msie7
Citar            
MensajeEscrito el 13 Ago 2009 11:28 pm
Hola que pena mandar esto asi pero bueno:

Código ActionScript :

tamañofinal = 240;//éste es el tamaño en píxeles de la imagen cargada
this.onEnterFrame = function() {
if (mc._width>0) {
if (mc._width>mc._height) {
mc._yscale = mc._xscale=(tamañofinal*100)/(mc._width);
} else {
mc._yscale = mc._xscale=(tamañofinal*100)/(mc._height);
}
}
if (mc._width == tamañofinal || mc._height == tamañofinal) {
delete (this.onEnterFrame);
}
}
System.useCodepage = true;
var frases_xml:XML = new XML();
frases_xml.ignoreWhite = true;
frases_xml.load('imagenes.php');
//frases_xml.load('imagenes.xml');
frases_xml.onLoad = function(){
   var numero_random:Number = Math.floor(Math.random()*frases_xml.firstChild.childNodes.length);
   var frase_random:String = frases_xml.firstChild.childNodes[numero_random].firstChild.nodeValue;
   mc.loadMovie(frase_random,width=240,height=180);
}
stop();

Por sforero

478 de clabLevel

1 tutorial

 

social media expert world

chrome

 

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