Click to See Complete Forum and Search --> : Flash video doesnt appear


lizzard
05-27-2010, 09:22 AM
Hi,

I've been trying to get the flash video on my page to appear but i cant seem to get it to work.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

<head>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home</title>

<style type="text/css">
.style1 {
margin-bottom: 0px;
}
</style>

<script language="javascript" type="text/javascript">
</script>

</head>

<body>

<div class="style1" style="height: 267px">


<table style="width: 100%">
<tr>
<td style="width: 381px; height: 297px;">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" name="merlin intro" align="middle" id="merlin intro" style="width: 347px; height: 291px">
<param name="movie" value="index/Movie - 9 April 10.swf"/>
<param name="quality" value="high"/>
</object>

</td>
<td style="height: 297px">
<table style="width: 100%">
<tr>
<td>
<img src="image/button.jpg" width="20" height="14" />
<a href="index.htm" style="color:#00c7ca; text-decoration:none">Home</a></td>
</tr>
<tr>
<td>
<img src="image/button.jpg" width="20" height="14" />
<a href="products.htm" style="color:#00c7ca; text-decoration:none">Products</a></td>
</tr>
<tr>
<td>
<img src="image/button.jpg" width="20" height="14" />
<a href="contact_us.htm" style="color:#00c7ca; text-decoration:none">Contact Us</a></td>
</tr>
</table>
</td>
</tr>
</table>


</div>

<div></div>

<div>
<span class="style1"><font color="#000000">(c)2010, </font></span></div>

</body>

</html>


Help please :)

Eye for Video
05-27-2010, 05:24 PM
Create a new blank page for testing. Use DOCType
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Code will validate then.
put this in body:
<object type="application/x-shockwave-flash" data="filename.swf" width="347" height="291">
<param name="movie" value="filename.swf">
</object>
rename your video file using no upper case letters and NO spaced in file name. Use_underscore_instead.
Edit code about to fit your movie dimensions and file name.
Test.
Best wishes,
Eye for Video
www.cidigitalmedia.com

lizzard
05-31-2010, 11:09 PM
Thanks! :)

lizzard
06-02-2010, 09:04 AM
Is it possible to use the Doc type as:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">


With this in the body:

<object type="application/x-shockwave-flash" data="Images/movie_9april2010.swf"
name="movie" value="Images/movie_9april2010.swf" style="width: 307px; height: 298px; float: right;">
</object>


When i use the above doc type, the 'value' for the flash is highlighted. I'm using sharepoint and it says that 'In XHTML 1.0 Frameset the attribute 'value' is not permitted for the<object> tag.

What should i change it to?

Eye for Video
06-02-2010, 09:54 AM
I suggested using an HTML DOCType because I think that very simple code will validate with that. Using a different DOCType it may not. If you want to use that simple code, use an HTML DOCType. OR here are some options:
Use the DOCType you suggested and live with the error. Does the Flash work that way?
Use swfobject instead of the very simple code I posted above. A little more complex but it's a great way to place Flash on a Web page. It is the method that I use most.
http://code.google.com/p/swfobject/
Here is discussion on the use of a XHTML or HTML DOCType:
http://www.webdeveloper.com/forum/showthread.php?t=230295
Best wishes,
Eye for Video
www.cidigitalmedia.com

lizzard
06-02-2010, 10:14 AM
Used the code you gave in the first reply. I was wondering why it didnt work when i tried it before. Realise its because the name of swf was wrong.

thanks for the help.

its finally working! :)