CamzorFlash - Installation Guide

From BloatedCowSoftware Wiki

Jump to: navigation, search

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.

  1. Edit the DefaultCamzorFlash.xml file (in a text editor (notepad will do))
    1. Make edits to this file. Follow the CamzorFlash.xml Settings File page if you get stuck.
    2. Save it as: CamzorFlash.xml
  2. 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
  3. Edit the webpage you'll be displaying CamzorFlash on.
    1. 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>
    1. 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:
   <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>
  1. 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.

  1. Edit the DefaultCamzorFlash.xml file (in a text editor (notepad will do))
    1. Make edits to this file. Follow the CamzorFlash.xml Settings File page if you get stuck.
    2. Save it as: CamzorFlash.xml
  2. 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>
  1. Upload that page along with CamzorFlash.xml and CamzorFlash.swf
Personal tools
Bloated Cow Software