Comunidad de diseño web y desarrollo en internet online

Flash Detection Kit / Express Install

Citar            
MensajeEscrito el 14 Mar 2006 01:53 pm
Hola hola hola,

Estoy tratando de implementar el Express Install que ofrece Macromedia como parte del Flash Detection Kit; la idea es que si el usuario no tiene instalada la versión del Flash Player que necesitamos, y siempre y cuando tenga una versión igual o superior a la 6r65, el propio swf le muestra una "alerta" para actualizar a la última versión del player, y si el usuario acepta y completa la instalación automáticamente se vuelve a cargar la página original, ya con todo el contenido:



El problema es que si el usuario decide pulsar el NO, o la instalación falla por algún motivo (p. ej., problemas con la conexión) el .swf recurre a un fichero .as de este pelo:

Código :

function installStatus(statusValue) {
   if (statusValue == "Download.Complete") {
      // Installation is complete. In most cases the browser window that this SWF 
      // is hosted in will be closed by the installer or manually by the end user
   }
   else if (statusValue == "Download.Cancelled") {
      // The end user chose "NO" when prompted to install the new player
      // by default no User Interface is presented in this case. It is left up to 
      // the developer to provide an alternate experience in this case
   }
   else if (statusValue == "Download.Failed") {
      // The end user failed to download the installer due to a network failure
      // by default no User Interface is presented in this case. It is left up to 
      // the developer to provide an alternate experience in this case
   }
}


Estoy intentando configurar estos else para, o bien mostrar una imagen alternativa en lugar del .swf, o bien cargar un html distinto, sin flash, pero no llevo vida... por ejemplo, si pongo:

Código :

else if (statusValue == "Download.Cancelled") {
      getURL("paginasinflash.html");
   }


y hago la prueba (usando un navegador con el player 7, y pulsando NO al intentar la actualización) la página se queda como estaba - el flash desaparece, y no se redirige a ningún html alternativo... ¿alguna sugerencia? :)

Gracias y un saludo,

Chus

Por Chus

3 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 14 May 2009 08:13 pm
a mi no me aparese con todas las verciones....
o simplemente no se me ejecuta la pagina al descargarlo en firefox
y me arroja el mismo cuadro denuevo

si lograste solucionarlo porfa ayudame

Por caritoxafter

1 de clabLevel



 

msie7

 

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