PDA

View Full Version : moved a page file - now flash file won't show


songboy
01-29-2011, 04:33 PM
I'm putting connected pages into folders to tidy things up. I reacted to file linking as such, this:

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

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

<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','heigh t','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

songboy
02-04-2011, 11:37 AM
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:
<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','heigh t','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:
<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','heigh t','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:
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
in the HEAD.
So, I did this:
<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