title: Issue with ScriptCam in MVC4
body: <p>Im trying to use ScriptCam <a href="https://www.scriptcam.com/demo_5.cfm" rel="nofollow">https://www.scriptcam.com/demo_5.cfm</a> for my MVC4 project. I have downloaded the files required and followed the instructions on the site. However when i go to run the application i get an issue in the google debugger (shown below)-</p>
  
  <pre><code>  GET http://localhost:9171/QR/webcamlogo.png 404 (Not Found)
  qr:145 Uncaught TypeError: undefined is not a function
  qr:194 GET http://localhost:9171/QR/webcamlogo.png 404 (Not Found)
  swfobject.js:4 GET http://localhost:9171/QR/scriptcam.swf 404 (Not Found)
  </code></pre>
  
  <p>Now i've tried to figure out how to change the path location of the SWF.file but my javascript experience is only a week old. below is my view file...the rest of the javascript files can be got from the link i provided above.</p>
  
  <p>qr.cshtml </p>
  
  <pre><code>  @{
      ViewBag.Title = "Webcam";
  }
          &lt;script language="JavaScript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"&gt;&lt;/script&gt;
          &lt;script language="JavaScript" src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"&gt;&lt;/script&gt;
          &lt;script language="JavaScript" src="~/Webcam/scriptcam.js"&gt;&lt;/script&gt;
          &lt;script&gt;
              $(document).ready(function () {
                  $("#webcam").scriptcam({
                      onError: onError,
                      cornerRadius: 0,
                      onWebcamReady: onWebcamReady
                  });
              });
  
              function onError(errorId, errorMsg) {
                  alert(errorMsg);
              }
              function changeCamera() {
                  $.scriptcam.changeCamera($('#cameraNames').val());
              }
              function onWebcamReady(cameraNames, camera, microphoneNames, microphone, volume) {
                  $.each(cameraNames, function (index, text) {
                      $('#cameraNames').append($('&lt;option&gt;&lt;/option&gt;').val(index).html(text))
                  });
                  $('#cameraNames').val(camera);
              }
          &lt;/script&gt; 
  
  
          &lt;div style="width:330px;float:left;"&gt;
              &lt;object type="application/x-shockwave-flash" data="scriptcam.swf" width="320" height="240" id="webcam" style="visibility: visible;"&gt;&lt;param name="menu" value="false"&gt;&lt;param name="wmode" value="direct"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="flashvars" value="width=320&amp;amp;height=240&amp;amp;chatWindow=chatWindow&amp;amp;path=&amp;amp;zoom=1&amp;amp;zoomChat=1&amp;amp;rotate=0&amp;amp;skewX=0&amp;amp;skewY=0&amp;amp;flip=0&amp;amp;noFlashFound=%3Cp%3EYou%20need%20%3Ca%20href%3D%22http%3A%2F%2Fwww.adobe.com%2Fgo%2Fgetflashplayer%22%3EAdobe%20Flash%20Player%2011.7%3C%2Fa%3E%20to%20use%20this%20software.%3Cbr%2F%3EPlease%20click%20on%20the%20link%20to%20download%20the%20installer.%3C%2Fp%3E&amp;amp;onError=function%20onError(errorId%2CerrorMsg)%20%7B%0A%09%09%09%09alert(errorMsg)%3B%0A%09%09%09%7D&amp;amp;cornerRadius=0&amp;amp;onWebcamReady=function%20onWebcamReady(cameraNames%2Ccamera%2CmicrophoneNames%2Cmicrophone%2Cvolume)%20%7B%0A%09%09%09%09%24.each(cameraNames%2C%20function(index%2C%20text)%20%7B%0A%09%09%09%09%09%24('%23cameraNames').append(%20%24('%3Coption%3E%3C%2Foption%3E').val(index).html(text)%20)%0A%09%09%09%09%7D)%3B%20%0A%09%09%09%09%24('%23cameraNames').val(camera)%3B%0A%09%09%09%7D&amp;amp;id=webcam"&gt;&lt;/object&gt;
              &lt;div style="margin:5px;"&gt;
                  &lt;img src="webcamlogo.png" style="vertical-align:text-top"&gt;
                  &lt;select id="cameraNames" size="1" onchange="changeCamera()" style="width:245px;font-size:10px;height:25px;"&gt;
                  &lt;option value="0"&gt;HP Truevision HD (04f2:b35f)&lt;/option&gt;&lt;/select&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div style="width:135px;float:left;"&gt;
              &lt;p&gt;&lt;button class="btn btn-small" id="btn1" onclick="$('#decoded').text($.scriptcam.getBarCode());"&gt;Decode image&lt;/button&gt;&lt;/p&gt;
          &lt;/div&gt;
          &lt;div style="width:200px;float:left;"&gt;
              &lt;p id="decoded"&gt;&lt;/p&gt;
          &lt;/div&gt;
  
  
  
                  &lt;/div&gt;
  </code></pre>