By Aleet on
I am trying to show this swf file in a drupal page: http://torkzadeh.com/SimpleViewer_v17/index.html
but is showing up like this: http://torkzadeh.com/gallery3 It just sits there and won't run. I am wondering if there is something else I need to do to run this. I couldn't find any issues in handbook or old posts.
I am using version 4.6.2.
thanks.
Comments
imageData.xml not Found?
It appears that your flash movie is attempting to load its data from http://torkzadeh.com/imageData.xml , which appears not to exist (you just get the standard page not found page if you try and load that in your browser). The working version you mention above (in the SimpleViewer_v17 directory) loads its data from http://torkzadeh.com/SimpleViewer_v17/imageData.xml which is an existing xml file. This may be a good starting point for investigation (existence of the file, permissions) ...
Thanks so much Alan. I moved
Thanks so much Alan. I moved imageData.xml file to root directory and it works now. Still haven't figured out how to change the path to imageData.xml.
By the way, do you know if anyone has figured out a way to display images stored in drupal database in this way? Or some kind a of a script that looks in files/images and generates an xml file.
It certainly is possible
You're most welcome...
regarding your question: as an example of what you are trying to do, www.nowpublic.com uses a flash object to wrap photos, videos and audio files. The data for the flash objects is loaded over XMLRPC, which is probably the simplest way to go about sending data to a flash object.
This would, however, require some tinkering inside your flash source code, which you may not have access to. In which case, your best option may be to create a module which defines in its menu hook a page with the path 'imageData.xml'. You could then map this path to a callback function that instead of displaying a normal (html) Drupal page, instead queries your image database, and formats the results as an xml file. This should not present too many difficultites.
A third option could be to periodically generate an xml file from database data (on a cron run) which would have the small performance advantage that the xml file would not need to be generated afresh on every page view, at the cost of the data being not quite up-to-the-minute.
good luck with it - it looks like an interesting project.
Alan
there is no special trick
there is no special trick for embedding swf files...you just have to make sure the file locations are all correct. my guess is that there is an issue with configuration of the simple viewer (which is a pretty slick image viewer, i must say).
-Farsheed
Hi Farsheed. Yeah it was
Hi Farsheed. Yeah it was looking for xml file in a different directory. Someone warned me that simpleviewer has problems displaying in IE. But I haven't seen any problems yet.
Maybe this applies too
Hey,
I posted a guide on how to use SimpleViewer with Drupal, with a couple of scripts. Hope it helps.
http://www.christianloza.com/howToDrupalSimpleviewer
Best regards,
Chris.
drupal module available
http://drupal.org/project/flash_gallery