CamzorFlash - Installation Guide
From BloatedCowSoftware Wiki
The following guides will help you install CamzorFlash on your site
Contents |
Advanced
This setup is recommended, it will work correctly with all browser types.
- Edit the DefaultCamzorFlash.xml file (in a text editor (notepad will do))
- Make edits to this file. Follow the CamzorFlash.xml Settings File page if you get stuck.
- Save it as: CamzorFlash.xml
- Upload the following files to your webserver, in the same directory as the html page you will place the webcam:
- Binary mode: CamzorFlash.swf
- ASCII mode: CamzorFlash.xml AC_RunActiveContent.js
- Edit the webpage you'll be displaying CamzorFlash on.
- Between the <head> and the </head> tag, place the following code:
<script language="javascript">AC_FL_RunContent = 0;</script> <script src="AC_RunActiveContent.js" language="javascript"></script>
- In the place where you want to show the CamzorFlash swf, place the following code
- Note: you'll need to edit the spots that are highlighted:
- In the place where you want to show the CamzorFlash swf, place the following code
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '320', // This is the width of the swf
'height', '260', // This is the height of the swf (I'm making it 20px higher than my image height of 240 to accomidate text overlay
'src', 'CamzorFlash',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'CamzorFlash',
'bgcolor', '#000000', // this is the background color of the swf
'name', 'CamzorFlash',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'CamzorFlash',
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width="320"
height="260"
id="CamzorFlash"
align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="CamzorFlash.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="CamzorFlash.swf"
quality="high"
bgcolor="#000000"
width="320"
height="260"
name="CamzorFlash"
align="middle"
allowScriptAccess="sameDomain"
allowFullScreen="false"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
- Upload the webpage and you're good to go!
Easy Way
This setup is not recommended as it doesn't work correctly with all browser types.
- Edit the DefaultCamzorFlash.xml file (in a text editor (notepad will do))
- Make edits to this file. Follow the CamzorFlash.xml Settings File page if you get stuck.
- Save it as: CamzorFlash.xml
- Edit the page you are placing CamzorFlash.swf on and add the following code (make sure you change the values that are highlighted)
<object width="340" height="260"> <param name="movie" value="CamzorFlash.swf" /> <param name="bgcolor" value="#000000" /> <embed src="CamzorFlash.swf" width="340" height="260" bgcolor="#000000"/> </object>
- Upload that page along with CamzorFlash.xml and CamzorFlash.swf
