Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorlui-g
    • CommentTimeJul 4th 2007
     
    Hi,
    I'm using the full page version of the code with alternative non-flash content, forcing version 8 and up, and have also switched the express install option.

    This works fine for all the browsers I've tested this on Mac,PC, Nokia N95.

    There is a problem however - my Nokia N770 internet tablet has flash 6.0.85 and instead of the alternative non-flash content, an express install is attempted but fails - I get a page with the following message on it: "Express Install is not supported by this version of the flash player. to upgrade, please visit: Flash player download centre".

    Is there any way to keep the express install option (which is nice), but serve the alternative non-flash content when the express version is not supported? - the non-supported version message is not very useful for browsers that cannot upgrade their flash player, and our visitors end up not seeing any of our content.

    Many thanks in advance,
    Luis.
    • CommentAuthorphilip
    • CommentTimeJul 4th 2007 edited
     
    6.0.85 should be supported by ExpressInstall... i believe ExpressInstall is supported since v6.0.65. i don't know much about the Nokia product line and versions of Flash Player used in mobile devices.

    regardless, you can target specific player versions by using SWFObject's built-in detection methods. here's an example i whipped up based on Aran's example from a previous post:


    <html>
    <head>
    <script type="text/javascript" src="swfobject.js"></script>
    </head>

    <body>

    <div id="flashcontent">
    alternate content goes here
    </div>

    <script type="text/javascript">
    // <![CDATA[

    var version = deconcept.SWFObjectUtil.getPlayerVersion();

    //Only attempt to embed SWF if Flash Player is newer than v6.0.64
    if((version['major'] == 6 && version['rev'] >= 65) || (version['major'] > 6)) {
    var so = new SWFObject("movie.swf", "mymovie", "200", "100", "8", "#336699");
    so.useExpressInstall('expressinstall.swf');
    so.write("flashcontent");
    }

    //For troubleshooting: show me what version is currently installed.
    //This can be safely deleted
    document.write(version['major'] +"." +version['minor'] +"." +version['rev']);

    // ]]>
    </script>

    </body>
    </html>


    i'm sure there's a more elegant way to write the javascript, but this should point you in the right direction. :)

    - philip
    • CommentAuthorphilip
    • CommentTimeJul 4th 2007 edited
     
    to anyone who may be reading this:

    i want to stress that using a script like the example i posted above is normally NOT necessary... this script is just an example of how to target a specific version of Flash Player.

    SWFObject was designed to leave the targeted DIV (in this case "flashcontent") UNTOUCHED if the required version of Flash Player is not found. 99% of the time the standard SWFObject code will suffice:


    <html>
    <head>
    <script type="text/javascript" src="swfobject.js"></script>
    </head>

    <body>

    <div id="flashcontent">
    alternate content goes here
    </div>

    <script type="text/javascript">
    // <![CDATA[

    var so = new SWFObject("movie.swf", "mymovie", "200", "100", "8", "#336699");
    so.useExpressInstall('expressinstall.swf'); //you can delete this line if you don't want to enable expressInstall
    so.write("flashcontent");

    // ]]>
    </script>

    </body>
    </html>


    - philip
    • CommentAuthorGeoff
    • CommentTimeJul 4th 2007
     
    If you get a message like that, it's coming from adobe - it' spossible that your device just doesn't support the express install functionality (which is my guess) or if it does, then you'd have to write adobe and have them add it to the support devices list.
    • CommentAuthorlui-g
    • CommentTimeJul 5th 2007
     
    Thanks Philip & Geoff,

    The Nokia N770 has a non-upgradable flash player so it's stuck at that version.

    Based on your useful example, I'll build an exception so that if the installed flash version is 6.0.85 then no express install is attempted.

    Many thanks,
    Luis.