Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/12/2006, 05:31
josusaar
 
Fecha de Ingreso: septiembre-2006
Mensajes: 84
Antigüedad: 17 años, 7 meses
Puntos: 0
Problema con el SWFObject

Pienso k ya conocereis la existencia de esta aplicacion de javascript,yo de todos modos he decidido situarlo en este lugar al estar relacionado con flash.
Bueno la cosa es, k con esta aplicacion si k he conseguido desactivar el marco k inserta internet explorer en la web, cuando insertamos algo de flash.

Una vez hecho esto, quiero que cuando el usuario no tenga instalado el flash player, en la misma pagina tenga la opcion de poder hacerlo, por k en caso contrario el usuario pasaria del asunto y al final no visitaria la web, de este modo le dariamos facilidad para descargar el plugin y visualizar la web correctamente.

Para hace lo anterior dicho, he leido k hay k hacer lo siguiente:
En primer lugar, en el primer fotograma de nuestro .swf debe de ir el siguiente codigo:

Código:
// used for express install - not required for plain SWFObject use

#include "expressinstall.as"

// initialize the ExpressInstall object
var ExpressInstall = new ExpressInstall();

// if the user needs to upgrade, show the 'start upgrade' button
if (ExpressInstall.needsUpdate) {
	
	// this is optional, you could also automatically start the 
	// upgrade by calling ExpressInstall.init() here instead of the following lines

	// attach the custom upgrade message  ** NOTE: see notes in Upgrade Message movieclip re: types of content to use
	var upgradeMsg = _root.attachMovie("upgradeMsg_src", "upgradeMsg", 1);
	upgradeMsg._x = Stage.width / 2;
	upgradeMsg._y = Stage.height / 2;
	
	// attach the button actions that will start the ExpresInstall updater
	upgradeMsg.upgradeBtn.onRelease = function() {
		ExpressInstall.init();
	}
	// if expressinstall is invoked, stop the timeline.
	stop();
}

// -----
// alternate usage:
// -----
/*

// test to see if install is needed:

if (ExpressInstall.needsUpdate) { // returns true if update is needed
  ExpressInstall.init(); // starts the update
  stop();
}

// otherwise, start the movie normally

*/
Y despues en la altura de el swf tenemos k poner el siguiente archivo: expressinstall.as, k como bien habeis visto es el include que agregamos en las primeras lineas. Y entonces se supone k haciendo eso deberia de aparecer la opcion de descargar el plugin de flash. Pero no m aparece nada !!!!
Entonces kisiera k si alguien sabe en k punto fallo o cual puede ser la solucion del problema.
SALU2 Y gracias de antemano.