473,749 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ 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.widbrookgra nge.co.uk/widbrookgallery/widgallery.html

The non functioning page is at http://www.widbrookgra nge.co.uk/galleryembed.ht m

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 11115
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
13119
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) http://bit-4-bit.com/packages/Templates/10000_templates.htm 1000 Web Templates For Only $10.00 (Savings Over $500.00) http://bit-4-bit.com/packages/Templates/1000_templates.htm
3
1654
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
2636
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 running into some PHP behavior that I do not understand in PHP 5.1.2. I need to parse the HTML from the following carefully constructed URI:
3
13669
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
3600
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 know using ExtJS I can load html using Ajax. What I can't do is load html containing scripts. I didn't want to use IFRAME. I've looked at
1
1568
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 with the whole "<object>" embedding as I use it to put alot of games (namely .swf) on my site. Would that be used here also? Thanks
5
3586
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 and XML are in the correct directory and getting no errors...just nothing but the background showing up.... Does anyone have any suggestions?
0
2306
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 when I click on the the galleries I can see the pervious gallery files. The gallery works like this: When you open the gallery there are links on top of the page where you can go to other gallery; with gallery one which has small thumbnails on...
0
8997
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8833
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9256
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8257
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6801
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4709
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4881
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3320
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 we have to send another system
2
2794
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.