<?xml version="1.0" encoding="UTF-8" ?> 
<Module> 
  <ModulePrefs title="Flash - __UP_name__" 
    height="300" 
    width="200"
    scrolling="false" 
    title_url="http://sites.google.com/site/flexwebtools/" 
    directory_title="Flash Swf Html Wrapper using SwfObject http://code.google.com/p/swfobject/ static publishing mechanism." 
    description="Publish Flash Swf to an iGoogle page. Set Swf url, width and height in the gadget preferences." 
    render_inline="optional" 
    author="Mykola Dzyuba" 
    author_email="mdzyuba@gmail.com" 
    author_affiliation="" 
    author_location="Palo Alto, CA" 
    screenshot="" 
    thumbnail="http://sites.google.com/site/flexwebtools/FlashWrapper.png">
   </ModulePrefs>
   <UserPref name="swfUrl" display_name="Swf URL" datatype="string" default_value="http://sites.google.com/site/flexwebtools/FlashWrapper.swf"  /> 
   <UserPref name="swfWidth" display_name="Width" datatype="string" default_value="200" /> 
   <UserPref name="swfHeight" display_name="Height" datatype="string" default_value="300" /> 
   <UserPref name="playerVersion" display_name="Player Version" datatype="string" default_value="10.0.0" /> 
   <UserPref name="bgcolor" display_name="Background Color" datatype="string" default_value="#ffffff" /> 
   <UserPref name="name" display_name="Flash Name" datatype="string" default_value="FlashWrapper" /> 
<Content type="html">
<![CDATA[
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
    <!-- 
    Smart developers always View Source. 
    
    This application was built using Adobe Flex, an open source framework
    for building rich Internet applications that get delivered via the
    Flash Player or to desktops via Adobe AIR. 
    
    Learn more about Flex at http://flex.org 
    // -->
    <head>
         <title></title>         
 
       <script type="text/javascript" src="http://sites.google.com/site/flexwebtools/swfobject.js"></script>
         
       <script type="text/javascript">
            var prefs = new _IG_Prefs(__MODULE_ID__);
            var swfUrl = prefs.getString("swfUrl");
            var swfHeight = prefs.getString("swfHeight");
            var swfWidth = prefs.getString("swfWidth");
            var bgcolor = prefs.getString("bgcolor");
            var playerVersion = prefs.getString("playerVersion");
            var name = prefs.getString("name");
       
            <!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
            var xiSwfUrlStr = "http://sites.google.com/site/flexwebtools/playerProductInstall.swf";
            var flashvars = {};
            var params = {};
            params.quality = "high";
            params.bgcolor = bgcolor;
            params.allowscriptaccess = "always";
            params.allowfullscreen = "true";
            var attributes = {};
            attributes.id = name;
            attributes.name = name;
            attributes.align = "middle";

            swfobject.registerObject("name", playerVersion, swfUrl);
        
    </script>
    </head>
    <body>
        <div id="flashContent">
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
                width="__UP_swfWidth__" height="__UP_swfHeight__" 
                id="__UP_name__">
                <param name="movie" value="__UP_swfUrl__" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="__UP_bgcolor__" />
                <param name="allowScriptAccess" value="always" />
                <param name="allowFullScreen" value="true" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="__UP_swfUrl__" 
                    width="__UP_swfWidth__" height="__UP_swfHeight__">
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="__UP_bgcolor__" />
                    <param name="allowScriptAccess" value="always" />
                    <param name="allowFullScreen" value="true" />
                <!--<![endif]-->
                <!--[if gte IE 6]>-->
                    <p> 
                        Either scripts and active content are not permitted to run or Adobe Flash Player version
                        10.0.0 or greater is not installed.
                    </p>
                <!--<![endif]-->
                    <a href="http://www.adobe.com/go/getflashplayer">
                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
                    </a>
                <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object> 
     </body>
</html>
  
  ]]>
</Content>
</Module>

