Foros del Web » Creando para Internet » Flash y Actionscript »

Detectar si esta instalado el plugin de flash...

Estas en el tema de Detectar si esta instalado el plugin de flash... en el foro de Flash y Actionscript en Foros del Web. Hola buenas: Acabamos de terminar una web en flash, y antes de nada queremos que se detecte si el usuario que esta visitando la web ...
  #1 (permalink)  
Antiguo 28/02/2007, 05:46
 
Fecha de Ingreso: septiembre-2006
Mensajes: 84
Antigüedad: 17 años, 7 meses
Puntos: 0
Detectar si esta instalado el plugin de flash...

Hola buenas:
Acabamos de terminar una web en flash, y antes de nada queremos que se detecte si el usuario que esta visitando la web tiene instalado el pluging de flash, y si no lo tiene instalado, k le de la opcion de hacerlo, como en este caso: http://www.originalchameleon.com/ , para ello hemos conseguido un codigo k se suele poner en el primer fotograma del swf, k seria el siguiente:

Código:
System.security.allowDomain("*");
System.useCodepage = false;
var ExpressInstall = function ()
{
    this.needsUpdate = _root.MMplayerType == undefined ? (false) : (true);
};
ExpressInstall.prototype = {init: function ()
{
    if (this.needsUpdate)
    {
        this.loadUpdater();
        return(true);
    }
    else
    {
        return(false);
    } // end if
}, loadUpdater: function ()
{
    System.security.allowDomain("fpdownload.macromedia.com");
    this.updater = _root.createEmptyMovieClip("expressInstallHolder", 10000000);
    var _self = this;
    this.updater.installStatus = _self.onInstallStatus;
    this.hold = this.updater.createEmptyMovieClip("hold", 1);
    this.updater.onEnterFrame = function ()
    {
        if (typeof(this.hold.startUpdate) == "function")
        {
            _self.initUpdater();
            this.onEnterFrame = null;
        } // end if
    };
    var _l3 = Math.random();
    this.hold.loadMovie("http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + _l3);
}, initUpdater: function ()
{
    this.hold.redirectURL = _root.MMredirectURL;
    this.hold.MMplayerType = _root.MMplayerType;
    this.hold.MMdoctitle = _root.MMdoctitle;
    this.hold.startUpdate();
}, onInstallStatus: function (msg)
{
    if (msg == "Download.Complete")
    {
    }
    else if (msg == "Download.Cancelled")
    {
        getURL("javascript:alert(\'This content requires a more recent version of the Macromedia Flash Player.\')");
    }
    else if (msg == "Download.Failed")
    {
        getURL("javascript:alert(\'There was an error downloading the Flash Player update. Please try again later, or visit macromedia.com to download the latest version of the Flash plugin.\')");
    } // end if
}};
if (_root.FORCEINSTALL != "false")
{
    trace("_root.FORCEINSTALL" + _root.FORCEINSTALL);
    var ExpressInstall = new ExpressInstall();
    if (ExpressInstall.needsUpdate)
    {
        ExpressInstall.init();
        stop();
    } // end if
} // end if
Pero la cosa es, k despues de insertar ese codigo en el .fla y luego crear el swf, todo sigue como antes, y al visitante k no tiene instalado el plugin de flash, no le da ninguna opcion de instalarlo.
Por favor ayudadme con esto, por k tenemos hechas algunas webs con flash, y tenemos k poner esta opcion a todas...
Venga SALU2 y gracias de antemano.
  #2 (permalink)  
Antiguo 28/02/2007, 12:12
Avatar de TMeister
Crazy Coder
 
Fecha de Ingreso: enero-2002
Ubicación: En la Oficina
Mensajes: 2.880
Antigüedad: 22 años, 3 meses
Puntos: 193
Re: Detectar si esta instalado el plugin de flash...

Claro por esa comprobacion esta dentro de un SWF, cierto? como vas a comprobar mediante un SWF si tiene instalado el FlashPlayer si para ejecutar el SWF necesita el FlashPlayer..

Deberas usar el Flash Player Detection Kit

En este Kit viene un javascript que verifica si tiene o no instalado el FlashPlayer si no lo tiene el usuario es redirigido a un HTML donde se le da el aviso.

Saludos!
  #3 (permalink)  
Antiguo 11/10/2007, 12:19
 
Fecha de Ingreso: octubre-2007
Mensajes: 1
Antigüedad: 16 años, 6 meses
Puntos: 0
Re: Detectar si esta instalado el plugin de flash...

Temesier También puedes utilizar SWFObject en javascript para detectar si hay flash instalado y despues con el ASS de Josuar detectar la version de flash que tenemos.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:08.