Installed the swfObject and get the testfile to play alright. What I wanna do is to play a file called images.xml that was sent to me by a colluege that uses swfObject. I cannot get this to work, and I dont know where to start looking for faulties. I cannot find a var in his original code, referring to this playlist.
Neither (for test purpose) have I managed to just play JPG's since I havent found instructions of where to put them.
Have I misunderstood the purpose of swfObject?
If needed look here for example: www.spectrasonics.net
(The file on index is what I want to do. I have downloaded the swfobject.js and newsbanner.swf file)
If you look on the example page you supplied, you can see the swfobject definition:
<script type="text/javascript"> // <![CDATA[ var so = new SWFObject("news/newsbanner.swf", "specNews", "625", "350", "7", "#FFFFFF"); so.write("flashcontent"); // ]]> </script>
This newsbanner.swf is using a component called slidershowPro (see more info at www.slideshowpro.com). Internally, the .swf filw will be loading the xml file which defines the galleries / images to show.
So basically, that images.xml should be in the same folder as your .swf file. Assuming the xml file has correct links to the images you want to display, you should be able to use the above swfobject definition. Just change the path to the .swf file if differnt from above "news/newsbanner.swf" sould be changed to "newsbanner.swf" if the file is in the same folder as your HTML page.
Ok, thanks Aran, that does takes me one step further.
Do I need the slidershowPro to get it to work, or is that just a type of assembler?
I do have the xml file in the same folder and the links within it are absolute. The file is copied from the page I linked to previously, so it is the actual file they are using.
If you post your page, I can see what server calls are failing. I don't know your folder structure, or what is wrong otherwise. You might want to ask your colleague exactly how he had his folders set up.
I get the "player" to show. It also adds the 20 preview numbers, but no loading? I have exchanged the links to local server. I have installed the .js, .swf and .xml I see something called transition.swf. Is that a file?
My colleague has not set it up personally, so I cannot get much help there I think.
but again, Im very greatful for the help I get here!
I am unsure about the realtive paths you have defined in your XML: lgPath="/pics" tnPath="/pics". Nornally I would recommend to have absolute paths here, but it looks like the image files are being references absolutely in the img src: