Groups | Blog | Home
all groups > flash (macromedia) > november 2003 >

flash (macromedia) : embed src not working


gonuggets20032004
11/16/2003 7:53:22 PM
i am using html 4.01 transitional and iso-8859-1 encoding for my web page. i just tried to use the object, classid, param, etc. for encoding my .swf file in my web page, but when i try to validate it, it says "there is no attribute 'src', no attribute 'width', etc." i attached a file that contains one of my pages and the activex control that i copied and pasted from the macromedia website. do i need to use a DOCTYPE or encoding?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Temescal Canyon's Ryan Riley</title>
<link rel="stylesheet" type="text/css" href="mainlinks.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table><tr><td class="pic_ryan"><img src="basketball.bmp" width="100" height="130" border="2" alt="ryan_default"></td></tr></table>
<table><tr><td class="stats"><a href="stats.html">2004-2005 Stats</a></td></tr></table>

<table><tr>
<td class="profile01" align="right">Height:<br>Weight:<br>Class:<br>Position:<br>No:<br>Born:</td>
<td class="profile02">6'2"<br>224<br>2005<br>TE/DE<br>34<br>May 27, 1987</td>
</tr></table>

<table><tr><td class="tchs1"><img src="football.gif" width="140" height="100" alt="football"></td></tr></table>


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100"
height="100" codebase="http://active.macromedia.com/flash7/cabs/
swflash.cab#version=6,0,0,0">
<param name="movie" value="moviename.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">

<embed src="moviename.swf" width="100" height="100" play="true"
loop="true" quality="high"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>

</object>

'code
'code
</body>
</html>

sdharper
11/16/2003 8:13:10 PM
Try this...

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="100" height="100">
<param name="movie" value="moviename.swf">
<param name="quality" value="high">
<embed src="moviename.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="100" height="100"></embed></object>


gonuggets20032004
11/16/2003 8:29:53 PM
tried it, but it still says that it can't recognize 'scr', etc.


sdharper
11/16/2003 9:27:29 PM
I just tried your code, and it is working fine for me. Where are you trying to validate this? I set up a directory on my local drive, saved your HTML to it, created a quick moviename.swf, and previewed it in Internet Explorer. Everything displayed fine.


gonuggets20032004
11/16/2003 10:39:51 PM
it works fine when i display it on internet explorer also. i am using validator.w3.org, which is a html validation site. shouldn't it recognize macromedia flash attributes or should i assume that my .swf file will be displayed on all browsers (windows/mac/ect.)?

AddThis Social Bookmark Button