Not signed in (Sign In)

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

  1.  
    I have a swf that is 195px by 135 so I am getting an error because the express install object requires a 214 x 137 swf but this will not work with my design. Is there a parameter that I can add to make it possible to have the flickrAPI.swf be 195px by 135px and the expressinstall.swf be 214 x 137. Any help would be greatly appreciated! Thanks

    <script type="text/javascript">
    // <![CDATA[
    var so = new SWFObject("../web_assets/movies/flickrAPI.swf", "Flickr!", "195", "135", "9", "");
    so.addParam("wmode", "transparent");
    so.addVariable("siteName", "Split%20Rock%20Lighthouse");
    so.addVariable("siteSearch", "351060%40N23");
    so.addVariable("searchType", "group");
    so.addVariable("mochi_site", "367f3845");
    so.useExpressInstall('../web_assets/movies/expressinstall.swf');
    so.write("flashcontent");

    // ]]>
    </script>
    • CommentAuthorphilip
    • CommentTimeDec 4th 2007
     
    you can do version detection to determine what size to use. see related post.

    here's a functioning example of the following code (except with my swf instead of your swf).


    var version = deconcept.SWFObjectUtil.getPlayerVersion();
    var swfWidth = 195;
    var swfHeight = 135;
    var reqVersion = 9;

    //Only change height/width if Flash Player is older than minimum required version
    if(version['major'] < reqVersion) {
    swfWidth = 214;
    swfHeight = 137;
    }

    var so = new SWFObject("../web_assets/movies/flickrAPI.swf", "Flickr", swfWidth, swfHeight, reqVersion, "");
    so.addParam("wmode", "transparent");
    so.addVariable("siteName", "Split%20Rock%20Lighthouse");
    so.addVariable("siteSearch", "351060%40N23");
    so.addVariable("searchType", "group");
    so.addVariable("mochi_site", "367f3845");
    so.useExpressInstall('../web_assets/movies/expressinstall.swf');
    so.write("flashcontent");


    BTW, your SWF's id ("Flickr!") is invalid... it shouldn't have any spaces or punctuation.

    - philip
  2.  
    That works great! Thanks!