Not signed in (Sign In)

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

    • CommentAuthorccharlton
    • CommentTimeNov 15th 2007 edited
     
    I'm trying do get something like this rolling in a SWF like the so_tester...

    if (expressInstallIsNeeded)
    {
    ExpressInstall.launch();
    }
    else
    {
    // do something else...
    }

    Suggestions? Thoughts?
    • CommentAuthorphilip
    • CommentTimeNov 15th 2007
     
    expressinstall is already taken care of in SWFObject... i don't understand why you'd need to write your own...

    http://blog.deconcept.com/swfobject/#expressinstall

    http://blog.deconcept.com/swfobject/forum/discussion/640/
    http://blog.deconcept.com/swfobject/forum/discussion/649/
    http://blog.deconcept.com/swfobject/forum/discussion/683/

    for example, given this code:

    <script type="text/javascript">
    var so = new SWFObject("movie.swf", "mymovie", "200", "100", "8", "#336699");
    so.useExpressInstall('expressinstall.swf');
    so.write("flashcontent");
    </script>

    <div id="flashcontent">
    <p>this page requires Flash Player v8 or greater</p>
    </div>


    if you have Flash Player 7 or lower, you will be prompted to update your Flash Player.
    if you have Flash player 8 or greater, you see the SWF content as intended.
    if you have no Flash Player installed, you will only see the alternate content ("this page requires Flash Player v8 or greater").

    - philip
    • CommentAuthorphilip
    • CommentTimeNov 15th 2007
     
    just an FYI: my previous post referred to SWFObject 1.5.1. if you're trying to use the 'javascript' approach with the beta version of SWFObject 2.0, the syntax is a bit different:

    swfobject.embedSWF(swfUrl, id, width, height, version, expressInstallSwfurl, flashvars, params, attributes);

    which could be written as:

    <script type="text/javascript">
    var flashvars = null; // we aren't passing any flashvars
    var params = { bgcolor: "#336699" }; // we just want to set the background color
    var attributes = null; // we aren't setting any attributes
    swfobject.embedSWF("movie.swf", "mymovie", "200", "100", "8.0.0","expressInstall.swf", flashvars, params, attributes);
    </script>


    - philip