Quote Originally Posted by DamienDLSkinSolution View Post
Hey guys,

After reading this thread about 10 times and a couple of others, i am seeking your help.
I have a Flash header made by someone else (no .fla available) and i got 5 elements, using a xml file to call for the images displayed in the animation:

1. the swf file, "galleriasmall.swf"
2. the xml file listing my images, "fotos.xml"
3. the images folder, "images"
4. an html file, "galleria.html"
5. and a php file, "lettore.php"

If i understand how things were done, lettore.php and fotos.xml have the same purpose : look for the images to place into the swf...
I have been told to have all 5 elements in the same location, so all are in /damien/images/flash (damien being MY_TEMPLATE)

I had a previous very simple Flash header that worked just fine. I used the technic from Seethrou So i know the code in tpl_header worked for that 1st one.
First you need to do some clean up.. open your includes/configure.php file and look for this line and remove the ending '/'
Code:
 define('HTTP_SERVER', 'http://looloos-skincare.com/');
 define('HTTPS_SERVER', 'https://looloos-skincare.com/');
Having that '/' there is cussing a double // in your addressing.

Next, you should upgrade swfobject to 2.0 or 2.1, the code you're using would work on 1.0 which had problems working with other scripts. Once you do that, change the name of swfobject.js to jscript_swfobject.js and place it in includes/templates/damien/jscript folder and you can delete the script call in tpl_header. swfobject will auto load that way. Then replace the call to your swf as below..
Code:
<script type="text/javascript">swfobject.embedSWF("flash/galleriasmall.swf", "myContent", "800", "250", "7.0.0");</script>
  <div id="myContent"><p>Alternative content</p></div>
I like having a flash folder at the root of the site to keep things clean, place "galleriasmall.swf" and "fotos.xml" within that folder also have your image folder there. I'm assuming the html and php files are demo's of how to use the swf... If galleriasmall.swf is hard coded to load fotos.xml, then it should work, if not, then you'll need to post the flash object code from the html file for us to figure out the rest.

SwfObject can be found here.. code.google.com/p/swfobject/