Help - Search - Members - Calendar
Full Version: Dreamweaver Flash movie dosnt show, confused as hell, please help!
HTMLHelp Forums > Web Authoring > Graphics, Flash and Multimedia
DrJay
Hey guys, I did try searching for a related topic but to no avail sad.gif
I was just wondering if anyone can help me,

Im using Dreamweaver Cs3 to build my website, i dont use code or HTML just the design feature really
as i dont have a clue what im doing! and im trying to get flash movies i have made using Macromedia Flash 8 onto my website.
However they dont appaear once uploaded, I know they work locally and in dreamweavers preview and I have uploaded both the .swf and HTML file to my server??

Im not sure if its something to do with Dreamweavers HTML code or script because I rang my Web space providers, told them it wasnt appearing and they did something to the HTML (apparently) and made it work! but were unable to explain to me exactly what they had done which is useless to me because i need to upload more.

If anyone can help me by taking the time to look at the Source of the page where the flash is now working http://www.hsign.co.uk, and compare it to http://www.hsign.co.uk/flashfail.html to perhaps shed some light for me smile.gif

thanks
Jay
DrJay
This is the Working Code:

</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body>
<div align="center"><a href="home.html" class="style4">Click to enter</a><br />
</div>
<table width="978" border="0" align="center">
<tr>
<td><div align="center">
<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="550" height="400">
<param name="movie" value="flash.swf" />
<param name="quality" value="high" />
<param name="allowScriptAccess" value="always" />
<param name="wmode" value="transparent" />
<param name="flashvars" value="bacon=1&eggs=2" />
<embed src="flash.swf" flashvars="bacon=1&eggs=2" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="550" height="400" wmode="transparent">
</embed>
</object>



This is the code dreamweaver gives me:


<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body>
<div align="center"><a href="home.html" class="style4">Click to enter</a><br />
</div>
<table width="978" border="0">
<tr>
<td><div align="center">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','550','height','400','src','../Flashfolders/index','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../Flashfolders/index' ); //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="550" height="400">
<param name="movie" value="../Flashfolders/index.swf" />
<param name="quality" value="high" />
<embed src="../Flashfolders/index.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="550" height="400"></embed>
</object>
pandy
Well, the working page has OBJECT and the rest of the flash code in the HTML. On the non-working page it's inserted with JS. It seems the last parameter is supposed to pass the URL of the swf to the script. The URL is wrong. You can't go one folder up from where the page is, it's already at the top level. The same URL is repeated in the EMBED and NOSCRIPT.

Oops! Now I see the URL is in two places in the script.

AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0',
'width','550','height','400','src','../Flashfolders/index','quality','high','pluginspage',
'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash',
'movie','../Flashfolders/index' ); //end AC code
DrJay
i kind of understand, but im really still confused as to how to stop or get around this problem? Html is a foreign language to me smile.gif
pandy
OK. The URL must reflect where the flash file really is. ../ means one directory up. There is no such directory since you already are in the topmost one. See more here:
http://htmlhelp.com/faq/html/basics.html#relative-url

Where did you put the flash and what's it called? I looked for index.swf in the same directory as the HTML, but no luck.
DrJay
The file is called Flash.swf
I dont understand, is it dreamweavers coding?

"AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0',
'width','550','height','400','src','../Flashfolders/index','quality','high','pluginspage',
'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash',
'movie','../Flashfolders/index' ); //end AC code"

isnt AC_FL_RunContent a script to allow content? so isnt the URL afterwards the address for the script??
pandy
QUOTE
I dont understand, is it dreamweavers coding?

Not sure, but I think so since I've seen it before. For a while you had to embed Flash with JavaScript or IE wouldn't play it straight off without interaction from the user. There were some legal matters behind that all. AFAIK the JS isn't needed anymore, but I seldom use Flash myself, so I could be wrong.



QUOTE
isnt AC_FL_RunContent a script to allow content?


I think it just writes out the HTML.


CODE
so isnt the URL afterwards the address for the script??


No, you have that in HEAD.

HTML
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
pandy
There it is.
http://www.hsign.co.uk/Flash.swf
A relative URL would be simply "Flash.swf".
DrJay
Hey!!! u'll never guess what! i fixed it smile.gif
The reason it wasnt playing was because I had not set up a site in dreamweaver its self. So it was linking to a local file in the HTML code as soon as i inserted the flash into dreamweaver.

What i did was simply Create a site withhin dreamweaver and gave it my FTP details ( to log in) and have since uploaded it that way to my server... the only differece there is that Dreamweaver now knows where my final site is e.g http://www.hsign.co.uk and therefore changed to path inside the HTML (when inserted) to your FTP site as appose to your computers local file!!! Im sure i havent explained that very well at all. but im sure u can see what im trying to say smile.gif lol anyway got there in the dn, cheers for ur help guys!
pandy
And I see the flash is called photos1.swf or did you change your mind about what file to play? tongue.gif

Just editing the URLs would also have worked, just so you know. But of course it's better you figured out how to do it with DW if that's how you plan to work in the future.
DrJay
noo, the one i was showing you was purely for example smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.