Link to home
Start Free TrialLog in
Avatar of malury
maluryFlag for United States of America

asked on

I can't see my .swf file on my brower but I can see it on my local Dreamweaver file

Hi. I'm working with Dreamweaver CS3 . I  had a .swf file inside a html published some time ago. It was working fine. Recently I modified some text description around in the file-not related at all with the .swf- on the html, and when I re-load it, I cannot see it the .swf file anymore. It is very weird since I just changed and html  text, I didn't even touch the .swf file at all. This is the 3rd time this happens to me in a row, in 3 different files. I can see them perfectly in my computer (mac), but when I upload it to the browser (safari), I cannot see it at all.

I 'm copying and paying the code of two sites as an example :

Thanks :D
--site 1) www.joelmarksvo.com
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="93%" height="216" title="Joel Marks audio ">
              <param name="movie" value="Player018.swf" />
              <param name="quality" value="high" />
              <embed src="Player018.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="93%" height="216"></embed>
            </object>
 
--site 2 > here is a video: http://www.laboratoriosheiga.com/newweb/marcadores_cardiaco.html
 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="363" height="307" id="FLVPlayer">
                                                                        <param name="movie" value="FLVPlayer_Progressive.swf" />
                                                                        <param name="salign" value="lt" />
                                                                        <param name="quality" value="high" />
                                                                        <param name="scale" value="noscale" />
                                                                        <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=flash/SmallPathFast&autoPlay=false&autoRewind=true" />
                                                                        <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=flash/SmallPathFast&autoPlay=false&autoRewind=true" quality="high" scale="noscale" width="363" height="307" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />                                                                      
</object>

Open in new window

Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Hi malury,

Your paths to the javascript that controls the Flash look odd.

For the www.joelmarksvo.com site, the call looks like this:

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

When it should look like this:

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

Also, when I browse to:

http://www.joelmarksvo.com/Scripts/AC_RunActiveContent.js

I get a 404 error.

For the other site, the path to the javascript is:

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

which means I should find it at:

http://www.laboratoriosheiga.com/newweb/Scripts/AC_RunActiveContent.js

Again...404.  In fact, I can't find the Scripts folder at any level of your site.

You need to do the following:

1) Check your site definitions and make sure the Local Web Root folder is set correctly.  

2) Make sure the Scripts folder and the javascript file in it are loaded to the server and present.

3) Make sure the javascript calls I pasted above have the correct paths to the Scripts folder.
Avatar of malury

ASKER

Thanks Jason
I am a  little bit puzzle since I just use the insert > media from Dream Weaver and that was it. I don't know anything at all about java.

I changed the:
< script src="../../../../../  
to
<script src="Script

and upload it but it is still not working out.
http://www.joelmarksvo.com/Scripts/AC_RunActiveContent.js
http://www.laboratoriosheiga.com/Scripts/AC_RunActiveContent.js
http://www.laboratoriosheiga.com/newweb/Scripts/AC_RunActiveContent.js

Still returning a 404.

>> I don't know anything at all about java[script].

All Flash should be called with a javascript wrapper to get around a block in IE.  DW inserts this automatically when you open a page with a Flash movie.

You have several problems going on.  One is I think your paths in the Local Site definition are set up incorrectly.  Two, either you are not uploading the Scripts folder or you are uploading it to a weird place.
Avatar of malury

ASKER

Oh I see, ok... you are right, I didn't notice that there was a folder call script there, I upload it and it is working fine now.

Thanks a lot :D
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cartoondaddy
cartoondaddy

I can upload any files from Dreamweaver except swf files. I'm on a mac and know very little in the way of java - I'm mostly a flash animator. Any ideas why all other files will upload and not my swfs?
cartoondaddy,

You should probably post that as a new question.