| |
To get the 10 Rose Painters embedded into your HTML do
the following for each Flash Painter:
- Use the Javascript and the Flash Version detection code.*
- Set width and height to 800 and 700, or you may see text distortion.
- Set the FlashVars parameter to configure the correct Rose Painter.**
- For testing purposes, you can reset the HTML FlashVar parameter
with the popup menu located at the top right of this page. This allows
you test the 10 possible Rose Painter zone configurations.
- When testing with this page, accurate publishing results require
that your browser does NOT cache stale data.
* The Rose Painters requires Flash 9 plugin or higher.
**The
flashvar parameter sets the appropriate zone area to display. Use the
following names to set the flashvars parameter:
- steamboat
- frontrange
- vailsummit
- sawatch
- aspen
- gunnison
- grandmesa
- northsanjuan
- southsanjuan
- sangre
Example:
'flashvars','zonename=sangre',
This will display the Sangre Rose Painter.
Background color of Flash apps can be adjusted with the "bgcolor" parameter.
|
|
This is the code to embed the rose_painter.swf
file into the page HTML.
<head>
<script src="/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script language="javascript"> AC_FL_RunContent = 0; </script>
<script language="javascript"> DetectFlashVer = 0; </script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 115;
// -----------------------------------------------------------------------------
// -->
</script> </head>
<body>
<script language="JavaScript" type="text/javascript">
<!--
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion,
requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
// embed the flash movie
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0',
'width', '800',
'height', '700',
'src', 'rose_painter',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'rose_painter',
'bgcolor', '#e4e4e4', <<<< Adust background
color here
'name', 'rose_painter',
'flashvars','zonename=sangre', <<<< CRITICAL
!!!!!!!!!!
'menu', 'true',
'allowScriptAccess','sameDomain',
'allowFullScreen','false',
'movie', 'rose_painter',
'salign', ''
); //end AC code
} else { // flash is too old or we can't detect the plugin
var alternateContent = 'Alternate HTML content should be placed here.'
+ 'This content requires the Adobe Flash Player.'
+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
document.write(alternateContent); // insert non-flash content
}
}
// -->
</script>
</body> |
|