PDA

View Full Version : Dreamweaver and flash problem


moe122
02-20-2008, 04:05 PM
hey david, dont know if you can help....got this problem with dreamweaver and flash, i've imported a flash file into dreamweaver and when i preview it in explorer i get an error on page.... in dreamweaver it says.....Line 15 The tag name: "embed2 Not found in currently active versions.[XHTML 1.0 transitional] when validating the page....also in explorer it says....Line: 11 Char: 1 Object: expected Code: 0

Heres my code



<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Homepage</title>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','800','heigh t','200','title','Logo2','src','logo2','quality',' high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','logo2' ); //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,28,0" width="800" height="200" title="Logo2">
<param name="movie" value="logo2.swf" />
<param name="quality" value="high" />
<embed src="logo2.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="200"></embed>
</object></noscript>
</body>
</html>

davidj
02-20-2008, 04:08 PM
does the following exist in your site stucture

Scripts/AC_RunActiveContent.js

davidj
02-20-2008, 04:10 PM
do you have a tag called embed2 in you page somewhere ??

davidj
02-20-2008, 04:11 PM
do a global search of your site for the string embed2

moe122
02-20-2008, 04:11 PM
in local view? yes

davidj
02-20-2008, 04:13 PM
yes

it matters not as they should be sync'd

moe122
02-20-2008, 04:13 PM
embed2? in the code? wel no i dont..........jus have embed

davidj
02-20-2008, 04:15 PM
can we see the site

can you make it live

davidj
02-20-2008, 04:17 PM
this error...


embed2 Not found in currently active versions.[XHTML 1.0 transitional] when validating the page


is telling you that embed2 is being defined as a tag on line 15

moe122
02-20-2008, 04:19 PM
sorry embed2 was suppose 2 be embed........

davidj
02-20-2008, 04:20 PM
so you found it yes

moe122
02-20-2008, 04:23 PM
yes its in the code


<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','800','heigh t','200','title','Logo','src','file:///C|/wamp/www/Local Root/Test/logo2','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','file:///C|/wamp/www/Local Root/Test/logo2' ); //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,28,0" width="800" height="200" title="Logo">
<param name="movie" value="file:///C|/wamp/www/Local Root/Test/logo2.swf" />
<param name="quality" value="high" />
<embed src="file:///C|/wamp/www/Local Root/Test/logo2.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="200"></embed>
</object></noscript>
</body>
</html>

davidj
02-20-2008, 04:27 PM
good...

read the errors. They give you clues.

Also your path to the swf is absolute to your local machine where it should be relative to the site root. Make sure its relative or it wont work when you go live.

file:///C|/wamp/www/Local Root/Test/logo2.swf

moe122
02-20-2008, 04:34 PM
well when i open the following file:///C|/wamp/www/Local Root/Test/logo2.swf in the code i just get a blank flash preview

davidj
02-20-2008, 04:36 PM
thats the wrong path

you need it relative to the site root

if your swf is in the same dir that the page that calls it is in then the path would be

logo2.swf

moe122
02-20-2008, 04:45 PM
ok the path bits sorted bt stil got the same problem.....blank flash preview

davidj
02-20-2008, 05:06 PM
have to pass the ball on this one

anybody

moe122
02-20-2008, 05:12 PM
dnt worry gt it 2 wrk somehow.......dont even know what i did

davidj
02-20-2008, 05:42 PM
thats sick dude!

listen to me gettin down wid da kids.

moe122
02-20-2008, 05:45 PM
soz m8 u'l never b 1 of us........

davidj
02-20-2008, 05:47 PM
i know

us dads are uncool

you should see me on the dance floor makin shapes. doing a dad dance

please note i use the term dad to emphasis my age. I have no kids nor do i want them as i am too selfish

moe122
02-20-2008, 05:59 PM
u should have some kidz.........they'll make you feel complete

davidj
02-20-2008, 06:00 PM
are you lady teenager?

davidj
02-20-2008, 06:08 PM
u should have some kidz.........they'll make you feel complete

thats nature's way of tricking you into procreating.

domedia
02-20-2008, 07:39 PM
Put on the www somewhere?