Flash path issue
jeffpoulsen - July 3, 2009 - 12:52
I have built a flash slideshow that is loaded to a directory on the server where Drupal lives. I can insert a link to the flash site and the flash window opens fine except there are no pictures. I checked the path it is looking for the pictures to display and Drupal has added "node" into the path. This means it cannot find the pictures to display but the rest of the flash works. How can I fix that?

More details needed
not really sure - are you using a flash gallery module? If you are it might be better to post to the module issue queue.
If it is a custom solution, how are you generating your image file paths and then getting them into your flash app? Are you generating some xml, perhaps an rss feed through views? These factors are crucial to figuring out the problem.
gollyg, I am not
gollyg,
I am not using a module to do this. I have loaded several but have not figured out how to use them. I have used in the past a flash program that creates the swf, xml and html file along with a the directory for the thumbnails. I works fine and in the past I have put the code into a webpage to show the slideshow. I have tried to use an iframe but this did not work. Is there a way to have the flash work inside a Drupal page?
Okay, i am guessing what is
Okay, i am guessing what is going on here, but...
Your flash application is using a relative path from the current directory to find the images (or just using the current page). Either way it is a relative link. You then embed your flash into a page, and this changes the base for your relative link to the drupal path - eg 'node/22'. So your flash application is requesting the image relative to the drupal path, not the actual path.
To fix this you could go into the xml file and modify the image links to be root relative. For example, if the xml has a structure like this:
<image><path>myimage.jpg</path>
</image>
you would change the path to '/myimage.jpg'.
But this does point to the weakness of trying to shoe-horn a third party solution into a drupal site. You lose many of the advantages of the cms, as the application is completely ignorant to your content. Do a little research on the flash gallery modules for drupal, and consider switching over to them. Once configured they should update dynamically when you add or modify your images.
Good luck
Thanks gollyg, I
Thanks gollyg,
I kind of figured as much. I am new to Drupal and haven't had the time to explore the modules and use the data base as I should. I will look into that. I was hoping for switch to flip to get it to turn off the dynamic path for a single page.
Once again thanks for your help,
Jeff