logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > Javascript and JS frameworks
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 01-29-2011, 05:33 PM   #1
songboy
 
Join Date: Jan 2009
Posts: 115
Default moved a page file - now flash file won't show

I'm putting connected pages into folders to tidy things up. I reacted to file linking as such, this:

HTML Code:
<img src="images/bannername.gif"
changed to this:

HTML Code:
<img src="../../images/bannername.gif"
and the image was found. However, no matter what I do to this:

Code:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','550','height','60','title','bannerslogan','src','images/newbanner1a.swf','loop','false','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','images/newbanner1a' ); //end AC code
</script>
the banner movie is not located. I've tried the same as above eg ../../ but no joy. I've tried different variations but the truth is, ../../ should work because the images are all in the same image folder. I've looked around and found others who seem to have this sort of problem ie getting Flash files to be where you want them to be.
A solution would be much appreciated.
Thanks -
Songboy

Last edited by Corrosive; 02-04-2011 at 12:52 PM..
songboy is offline   Reply With Quote
Old 02-04-2011, 12:37 PM   #2
songboy
 
Join Date: Jan 2009
Posts: 115
Default found the problem

If anyone saw this and had a similar problem, you may like to know this.
I thought that when you move a file (a page) which needs a .swf file, you would simply have to redirect the path in the run_content code. For example, I had this:
Code:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','550','height','60','title','bannerslogan','src','images/newbanner1a.swf','loop','false','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','images/newbanner1a' ); //end AC code
</script>
Then I moved a page into another folder and did this:
Code:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','550','height','60','title','bannerslogan','src','../images/newbanner1a.swf','loop','false','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','../images/newbanner1a' ); //end AC code
</script>
BUT the .swf file didn't play (it wasn't being found.)
I could not understand why the extra ../ worked on the CSS call in the HEAD and also on the include in the HEAD.
Today I noticed that there is also this:
Code:
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
in the HEAD.
So, I did this:
Code:
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
and BINGO!!!! the .swf file played.
I hope this might help someone.
All the best:
Songboy

Last edited by Corrosive; 02-04-2011 at 12:52 PM..
songboy is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:05 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com