473,473 Members | 3,363 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Embedding swf and xml in HTML to create flash gallery

3 New Member
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 11106
drhowarddrfine
7,435 Recognized Expert Expert
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 New Member
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 Recognized Expert Expert
I should know this but I don't think your file names can begin with a number.
Sep 5 '07 #4
boycey
3 New Member
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 New Member
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 Recognized Expert Expert
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 New Member
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 Recognized Expert Expert
What is reading the xml files?
Jan 25 '10 #9
barbet
3 New Member
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

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

Similar topics

0
by: Audrey Pratt | last post by:
Happy Holidays to you and allow us to play Santa this year with these awsome deals that in anyway you can refuse: 2000 Web Templates for only $18.00 (Savings Over $1,000.00) ...
3
by: Buggyman | last post by:
Hi, I have been given a swf file to embed as a banner on our site... Does anyone have any tips on how I do this?? -- *Many* thanks. :)
3
by: Chuck Renner | last post by:
Please help! This MIGHT even be a bug in PHP! I'll provide version numbers and site specific information (browser, OS, and kernel versions) if others cannot reproduce this problem. I'm...
3
by: Ollie Riches | last post by:
How do I embed a *.flv file (Flash Video) into an aspx page similar to embedding windows media player active x control? Cheers Ollie Riches
1
by: charlie imac | last post by:
I have a question on the capability of Ajax. My question is: Is it possible to dynamically load any of the javascript gallery programs such as: Adobe Spry Gallery SmoothGallery others I...
1
by: Chris72205 | last post by:
How would I go about embeding a flash application into an HTML page? Note that I say flash application, it's not just the average .swf file. How do I embed that or is it possible? I am familiar...
5
by: Jordan79 | last post by:
I have created a flash gallery that loads pics from a XML file. This is working perfectly when I test it in flash but when I add it to my dreamweaver page all that loads is the background???? Flash...
0
nomad
by: nomad | last post by:
Hello Everyone. I founded an Flash and xml photo gallery. It works but I took it to another step What I want is to have six different galleries in one Flash file. I figure out how to do that but ...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.