File: /home/mmickelson/theflexguy.com/apps/silicondesigner/villagepress/SDFxDemo.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title></title>
<meta name="google" value="notranslate" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
html, body { height:100%; }
body { margin:0; padding:0; overflow:auto; text-align:center; background-color: #ffffff; }
object:focus { outline:none; }
#flashContent { display:none; }
</style>
<!-- DO NOT ALTER ORDER OF THE FOLLOWING SCRIPT BLOCKS -->
<script type="text/javascript" src="js/lib/swfobject.js"></script>
<script type="text/javascript" src="js/app/Utils.js"></script>
<script type="text/javascript" src="js/app/SDExternalInterface.js"></script>
<!-- START OF SILICON DESIGNER CONFIG SCRIPT BLOCK -->
<script type="text/javascript">
var sdDesigner = new SDExternalInterface();//use prototype inheritance to override default behavior of SDExternalInterface if required
SDExternalInterface.app = 'SDFxDemo';
// initialize Silicon Designer javascript API
var initialize = function(){//called by flex in the global space
sdDesigner.registerCallBackInstance("sdDesigner");
}
// assign flashvars
var flashvars = {};
/* IMPORTANT: You must set baseUrl to the base URL of the server which this application is deployed on. If you pass a value through the querystring it will override the static value defined here.*/
flashvars.baseUrl = getQuerystring("baseUrl", "http://www.silpub.com/");
/* IMPORTANT: If you do not pass a session id in the querystring the following must be defined */
flashvars.userId = getQuerystring("userID", "villagepress");
flashvars.userPass = getQuerystring("userPass", "villagepress!");
flashvars.context = getQuerystring("context", "villagepress");
/* IMPORTANT: owner should generally always be sent through the querystring and correspond to the currently logged in user. It associates image uploads and other content to the user. */
flashvars.owner = getQuerystring("owner", "villagepress");
/* IMPORTANT: the following vars should be passed through the querstring if they are going to be defined and generally never set to a static value below. */
flashvars.sdSessionId = getQuerystring("sdSessionId", "");
flashvars.templateId = getQuerystring("templateId", "3a2238b0-9559-4b7c-8d6a-4e2e5c04e7a6");
flashvars.instanceId = getQuerystring("instanceId", "");
flashvars.ruleCode = getQuerystring("ruleCode", "");
flashvars.variableData = getQuerystring("variableData", "");
/* IMPORTANT: the following vars should generally never be used except to define defaults if an application config is not defined on the server. */
flashvars.zoomMin = getQuerystring("zoomMin", "");
flashvars.zoomMax = getQuerystring("zoomMax", "");
flashvars.zoomIncrement = getQuerystring("zoomIncrement", "");
//flashvars.globalFontMapPath = getQuerystring("globalFontMapPath", "assets/fonts/GlobalFontMap_ref.xml");
flashvars.fontImagesBaseUrl = getQuerystring("fontImagesBaseUrl", "assets/fonts/fontImages/");
flashvars.fontSizeOptions = getQuerystring("fontSizeOptions", "7,8,9,10,11,12,14,16,18,21,24,28,32,36,42,48,60,72,96");
flashvars.lazyLoadLayouts = getQuerystring("lazyLoadLayouts", "true");
flashvars.loadLayoutSnapshots = getQuerystring("loadLayoutSnapshots", "");
flashvars.galleryItemsPerPage = getQuerystring("galleryItemsPerPage", "10");
flashvars.maxNumOfUploads = getQuerystring("maxNumOfUploads", "");
flashvars.placeholderImageScaleType = getQuerystring("placeholderImageScaleType", "fitContentProportionally");
flashvars.placeholderImageAssetID = getQuerystring("placeholderImageAssetID", "349acf2e-fb33-4bd8-aba4-1878e2fbb7b6");
flashvars.loadLayoutSnapshots = getQuerystring("loadLayoutSnapshots", "false");
flashvars.realtimePreviewUpdate = getQuerystring("realtimePreviewUpdate", "false");
flashvars.spellCheckEnabled = getQuerystring("spellCheckEnabled", "false");
flashvars.trackMetricEvents = getQuerystring("trackMetricEvents", "true");
flashvars.ppiThreshold = getQuerystring("ppiThreshold", "250");
/* IMPORTANT: the following vars should not be edited by anyone other than an spi developer */
flashvars.daoCode = getQuerystring("daoCode", "remote");
flashvars.parserCode = getQuerystring("parserCode", "remote");
flashvars.previewQuality = getQuerystring("previewQuality", "med"); //lrg, med or sml
var spellCheckEnabled = false;
function toggleSpellCheck(){
spellCheckEnabled = !spellCheckEnabled;
sdDesigner.setSpellCheckState(spellCheckEnabled);
}
</script>
<!-- END OF SILICON DESIGNER CONFIG SCRIPT BLOCK -->
<!-- EMBED SWF -->
<script type="text/javascript">
// For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection.
var swfVersionStr = "11.1.0";
// To use express install, set to playerProductInstall.swf, otherwise the empty string.
var xiSwfUrlStr = "playerProductInstall.swf";
var params = {};
params.quality = "high";
params.bgcolor = "#ffffff";
params.allowscriptaccess = "sameDomain";
params.allowfullscreen = "true";
var attributes = {};
attributes.id = "SDFxDemo";
attributes.name = "SDFxDemo";
attributes.align = "middle";
swfobject.embedSWF(
"SDFxDemo.swf", "flashContent",
"100%", "100%",
swfVersionStr, xiSwfUrlStr,
flashvars, params, attributes);
// JavaScript enabled so display the flashContent div in case it is not replaced with a swf object.
swfobject.createCSS("#flashContent", "display:block;text-align:left;");
</script>
</head>
<body>
<div id="flashContent">
<p>
To view this page ensure that Adobe Flash Player version
11.1.0 or greater is installed.
</p>
<script type="text/javascript">
var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
+ pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );
</script>
</div>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="SDFxDemo">
<param name="movie" value="SDFxDemo.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="SDFxDemo.swf" width="100%" height="100%">
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="allowScriptAccess" value="sameDomain" />
<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
11.1.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>
</noscript>
</body>
</html>