Hi Emil,
I took another look at this for you over the weekend, and I have some more concrete steps I can share with you to get this up and running. The main changes you'll need to make are going to be in your embed code. This is what you're currently using:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="728" height="400" id="ds_gallery2" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="ds_gallery2.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#3399cc" />
<embed src="ds_gallery2.swf" quality="high" bgcolor="#3399cc" width="728" height="400" name="ds_gallery2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
You'll want to change that to this:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="728" height="400" id="ds_gallery2" align="middle">
<param name="FlashVars" value="xmlfile=http://www.smoaklandco.com/images.xml.php?<?php echo $customRecord['num'] ?>" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="ds_gallery2.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#3399cc" />
<embed src="ds_gallery2.swf" quality="high" FlashVars="xmlfile=http://www.smoaklandco.com/images.xml.php?<?php echo $customRecord['num'] ?>" bgcolor="#3399cc" width="728" height="400" name="ds_gallery2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
What's different there is that I added a new "param" tag, and added a FlashVars attribute to the "embed" tag. These contain the values for dynamically loading the XML file.
There is also another step you'll need to take, which I'll take directly from the SlideShowPro documentation:
Edit FLA
Open the FLA containing SlideShowPro for Flash. Open the Properties panel (Windows > Properties) and give the component instance a unique variable name. For this tutorial, I’ll name it my_ssp.
Now we need to write some ActionScript to assign our XML file to SlideShowPro's xmlFileType property. Create a new layer in your movie timeline, and click its first frame so it’s highlighted. Open the Actions panel and enter this:
my_ssp.xmlFilePath=xmlfile;
If you're curious, this is the page on the SlideShowPro site where I got this information from:
http://wiki.slideshowpro.net/SSPfl/C-DynamicallyAssignXMLNote that I wasn't able to test this out completely on my end as I don't have a copy of Flash, so there might still be a couple of kinks to work out here, but those steps should cover most of the work required to get this running.
Let us know how this works out!
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com
Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.