How can i get the flash player working
- by Selase
Am only looking to play some flash content on my page.
found this code on the web and just copied it into my codes and changed the file name. However the intellisense underlines part of the code in green and says "File 'swfobject.js' was not found" this is the code i copied below.
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('cmsflash.swf','player', '400', '300', '9');
s1.addParam('allowfullscreen', 'false');
s1.addParam('allowscriptaccess', 'always');
s1.addParam('flashvars', 'file=video.flv');
s1.write('preview');
</script>
<style type="text/css">
and it underlines only (swfobject.js) saying file not found. the file i wish to display is named cmsflash and is in the root directory probably ~/cmsflash.swf
where and what could be going wrong?
the block where the flash should display is declared as follows
<table class="style2" style="height: 309px; width: 76%">
<tr>
<td>
<p id='preview'>The player will show in this paragraph</p>
</td>
</tr>
</table>
<span class="style6">
<br />
Please Help