469,341 Members | 7,768 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,341 developers. It's quick & easy.

Embedding swf and xml in HTML to create flash gallery

3
Hi
I have tried to embed a simpleviewer gallery (which works fine as a standalone web page) into a table on an existing web page inorder to show it as a gallery window. The gallery loads but there are no images?

The working page is at http://www.widbrookgrange.co.uk/widbrookgallery/widgallery.html

The non functioning page is at http://www.widbrookgrange.co.uk/galleryembed.htm

All the simpleviwer files are in widbrookgallery folder including the xml file gallery.xml


HTML Embed code follows
Expand|Select|Wrap|Line Numbers
  1.  
  2. <TD WIDTH="376" ALIGN="RIGHT" COLSPAN="2">
  3.              <EMBED
  4.                 SRC="http://www.widbrookgrange.co.uk/widbrookgallery/viewer.swf"
  5.                 FLASHVARS="xmlDataPath=http://www.widbrookgrange.co.uk/widbrookgallery/gallery.xml"
  6.                 BGCOLOR="#000000" WIDTH="900" HEIGHT='620 TYPE="application/x-shockwave-flash"'>
  7.             </TD> </EMBED>
  8.  


XML code follows

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <simpleviwergallery maxImageWidth="480" maxImageHeight="480" textColor="0xFFFFFF" frameColor="0xffffff" frameWidth="3" stagePadding="40" thumbnailColumns="3" thumbnailRows="4" navPosition="left" title="Gallery" enableRightClickOpen="true" backgroundImagePath="" imagePath="" thumbPath="">
  3. <image>
  4.     <filename>Widpond.jpg</filename>
  5.     <caption>Garden Pond</caption>    
  6. </image>
  7. <image>
  8.     <filename>Widpatio.jpg</filename>
  9.     <caption>Garden Patio</caption>    
  10. </image>
  11. <image>
  12.     <filename>WidGardenRooms.jpg</filename>
  13.     <caption>The Garden Rooms</caption>    
  14. </image>
  15. <image>
  16.     <filename>Courtyard.jpg</filename>
  17.     <caption>The Coutyard Rooms</caption>    
  18. </image>
  19. <image>
  20.     <filename>Lawn.jpg</filename>
  21.     <caption>Take a break...!</caption>    
  22. </image>
  23. <image>
  24.     <filename>pool.jpg</filename>
  25.     <caption>Swimming Pool</caption>    
  26. </image>
  27. <image>
  28.     <filename>restaurant.jpg</filename>
  29.     <caption>Restaurant</caption>    
  30. </image>
  31. <image>
  32.     <filename>115-1503_IMG.jpg</filename>
  33.     <caption>Caption 8</caption>    
  34. </image>
  35. <image>
  36.     <filename>115-1503_IMG.jpg</filename>
  37.     <caption>Caption 9</caption>    
  38. </image>
  39. <image>
  40.     <filename>115-1503_IMG.jpg</filename>
  41.     <caption>Caption 10</caption>    
  42. </image>
  43. <image>
  44.     <filename>115-1503_IMG.jpg</filename>
  45.     <caption>Caption 11</caption>    
  46. </image>
  47. <image>
  48.     <filename>115-1503_IMG.jpg</filename>
  49.     <caption>Caption 12</caption>    
  50. </image>
  51. <image>
  52.     <filename>115-1503_IMG.jpg</filename>
  53.     <caption>Caption 12</caption>    
  54. </image>
  55. <image>
  56.     <filename>115-1503_IMG.jpg</filename>
  57.     <caption>Caption 12</caption>    
  58. </image>
  59. <image>
  60.     <filename>115-1503_IMG.jpg</filename>
  61.     <caption>Caption 12</caption>    
  62. </image>
  63. <image>
  64.     <filename>115-1503_IMG.jpg</filename>
  65.     <caption>Caption 12</caption>    
  66. </image>
  67. </simpleviewerGallery>
  68.  
Anybody please help, I have deadline!!!
Sep 5 '07 #1
9 10807
drhowarddrfine
7,435 Expert 4TB
Hmm. I don't know if this is a javascript problem or a xml problem or flash or even html. You are missing the "type" in your <script> tag, ie, <script type="text/javascript">. Don't know if that might be part of the problem.
Sep 5 '07 #2
boycey
3
Hmm. I don't know if this is a javascript problem or a xml problem or flash or even html. You are missing the "type" in your <script> tag, ie, <script type="text/javascript">. Don't know if that might be part of the problem.
Thanks for tour interest! I have tried the type tag but this has no effect. What is odd is that the gallery is being generated but cannot seem to find the images. The grey X is what simpleviewer dispays if there is a filename error in an image or indeed if the image is missing from the images folder. It smacks to me of a drectory/path/filename error but I cannor se it!
Sep 5 '07 #3
drhowarddrfine
7,435 Expert 4TB
I should know this but I don't think your file names can begin with a number.
Sep 5 '07 #4
boycey
3
I should know this but I don't think your file names can begin with a number.
None of my files do begin with a number?? (or have I missed something!)
Sep 5 '07 #5
barbet
3
I have exact the same problem. Stand alone works, after embedding it works too but xml files are not read so photo's aren't showed. I'm sure the problem is that after embedding, the xml files are not read. What's the problem? I use cms, but i have successfully used swf's before, but withouth xml.

Please more imput???

greetz,

barbet
Jan 25 '10 #6
drhowarddrfine
7,435 Expert 4TB
It's interesting to look at this and see him complain about filenames not beginning with a number yet that's what the tag shows.

In XML, case matters. FILENAME.jpg is not the same as filename.jpg. Check to see if you are doing the same.
Jan 25 '10 #7
barbet
3
I know, I'm absolutely sure that's not the problem. I don't use numbers in my filename at all. Next to that, the stand-alone verion is running fine.
Jan 25 '10 #8
drhowarddrfine
7,435 Expert 4TB
What is reading the xml files?
Jan 25 '10 #9
barbet
3
a swf file should, but i fixed it. I saw there was a broken link in my swf. The stand alone can run using a link like: /uploads/photos. But an embedded swf needs www.mywebsite.com/uploads/photos. Maybe this will do for the newbie too, but it's probably past the deadline :P.
Jan 25 '10 #10

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Buggyman | last post: by
3 posts views Thread by Chuck Renner | last post: by
3 posts views Thread by Ollie Riches | last post: by
1 post views Thread by charlie imac | last post: by
1 post views Thread by Chris72205 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by Purva khokhar | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.