Groups > Multimedia > Macromedia Open SWF discussion > Re: swf not playing in browser




swf not playing in browser

swf not playing in browser
Wed, 16 Apr 2008 14:08:13 +000
Greetings,

 Although this seems to be a common theme, I have yet to find a solution. I 
have created a Flash animation (a map with rollovers at certain areas). I have 
inserted the published swf file into a page created in Dreamweaver. In preview 
mode, everythng works fine. To get this page on the internet, I then have to 
open Frontpage and import the folder that contains my DW page and supporting 
files. There are 6 computers in my Graphic Section that have the Adobe CS3 
suite on them. When I open the page in IE on any of these computers, the page 
displayes fine (the swf file works). When I open the page on any other computer

in my company, the page displays fine EXCEPT for the swf file, which displays 
as a white box. All of the other computers in my company just have Flash player

v8 on them. The kicker: If I make a page and just put a link to the swf file on

it, when the link is clicked, the swf file opens in the browser on these 
computers! What gives?!!! My organization has at least 7,000 computers 
connected to the network, so whatever the fix is, I can't go to each one of 
them and correct it. BUT I have a very high suspision that the solution is on 
the creation-end. Any suggestions? I am the only one in my organization who 
uses DW.

 Thanks!
Post Reply
Re: swf not playing in browser
Wed, 16 Apr 2008 16:45:04 +000
I solved my problem!!!

 I generated a html file containing my swf file in Flash and it opened in the 
browser. I tried the same thing in Dreamweaver and alas, no cigar.

 Comparing the code from both files revealed minute code differences between a 
Flash-generated html file and a Dreamweaver-generated html file. 
 I simply replaced certain variables (size, filename), copied the Flash code 
from <script ... /script>, and used it to replace the <script ...
/script> code 
in my Dreamweaver file.

 Works like a charm!

 I have attached a file with both sets of code in it.

 Good luck!

 bhull3

 Flash-generated code

 <script language="javascript">
 	if (AC_FL_RunContent == 0) {
 	alert("This page requires AC_RunActiveContent.js.");
 	} else {
 	AC_FL_RunContent(
 'codebase', 
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0

,0,0',
 'width', '550',
 'height', '580',
 'src', 'OhioConProjects2008web',
 'quality', 'high',
 'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
 'align', 'middle',
 'play', 'true',
 'loop', 'true',
 'scale', 'showall',
 'wmode', 'window',
 'devicefont', 'false',
 'id', 'OhioConProjects2008web',
 'bgcolor', '#ffffff',
 'name', 'OhioConProjects2008web',
 'menu', 'true',
 'allowFullScreen', 'false',
 'allowScriptAccess','sameDomain',
 'movie', 'OhioConProjects2008web',
 'salign', ''
 	); //end AC code
 	}
 </script>



 DreamWeaver-generated code

  <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','580',
 'align','middle',
 'src','OhioConProjects2008web',
 'quality','high',
 
'pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Vers

ion=ShockwaveFlash','movie','OhioConProjects2008web' ); //end AC code
         </script>
Post Reply
Re: swf not playing in browser
Thu, 17 Apr 2008 10:15:25 +000
I am using dreamweaver to insert a flash file....but its not working. It seems 
like it should be so easy...just insert/media/flash...All my links appear to be

correct. I have all the files saved in my site... and if I use flash to publish

the slideshow in html it works...but it doenst seem to be doing anything in 
dreamweaver..Here is what I am testing with..what am I doing wrong??? 

 [B]http://www.seoservicesinc.com[/B] | [B]http://www.gamesgeeks.com.com[/B]
Post Reply
Re: swf not playing in browser
Thu, 17 Apr 2008 11:36:18 +000
I can't say for sure what the differences are, but compare the code in the page

that works with the one that doesn't. If it's anything like the problem I was 
having, the issue is probably between the <script></script> tags. In
the page 
that doesn't work, try replacing the code between the
<script></script> tags 
with the code from the page that does work; just make sure that all of your 
files are in the same folder/directory.

 May work/may not, but t's a simple test and worth a try.

 bhull3
Post Reply
about | contact