My problem is to include the *.swf in an other file. the swf is already loaded but no pictures are shown. i notice that the xml file is not really needed if the gallery.php exist.
here my hirachie and working/not working problems:
gallery/galleryname/*
this is the directory where i extract the content of the linked *zip file.
It working very fine if i browsing to:
- mywebsite.com/gallery/galleryname/index.php
- mywebsite.com/gallery/galleryname/gallery.swf
it works fine only include
- images.jpg
- gallery.swf
- index.php
- gallery.php
it seems that the gallery.xml is useless if the gallery.php exists? changing and deleting the gallery.xml does not have impact.
if i put other images in the directory they will be shown ... very cool. But finally i want include the *.swf in another site:
galleryshouldinclude.php
this page should have the gallery inside.
i try to include it with the same code as in the index.php with adjusted paths like
<object id="flashmovie" type="application/x-shockwave-flash" data="gallery/galleryname/gallery.swf" width="300" height="300">
<param name="movie" value="gallery/galleryname/gallery.swf" />
<param name="FlashVars" value="<? if(isset($_GET['image'])) echo "topimage=".$_GET['image'] ?>" />
</object>
by browsing to
mywebsite.com/galleryshouldinclude.php my page is shown ... but the flash field is empty. the flash is loading (rightclick on the place shows me the typically flash contextmenu) but there are no pictures loading.
i try to change the gallery/galleryname/gallery.php the $xml path from
<img src="'.$file.'" to <img src="gallery/galleryname/'.$file.'"
it takes some effect if i now want access the page through
-
mywebsite.com/gallery/galleryname/index.php-
mywebsite.com/gallery/galleryname/gallery.swfthese pages now also shown an empty flash. so it looks like changing these part will definitivly change where the flash looks for the pictures but i have no chance to point the right ones?
What can i do?
- is it neccessary to work with the original gallery.fla (and export again as swf?) I dont want change any look and feel of the slides
- is it neccessary to include and edit the .xml?
- any ideas?
the swf and index.php works fine if i browse to the files in their subdirectory ... how can i include the swf in an file outside these directory?