We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15871
    • 105 Posts
    I have swfobject and SlideShowPro working fine, the problem is I want to be able to pass in a dynamic URL path for the xml file so I can reuse the singe SWF on various spots in the site. I followed all the info from the SSP Wiki for the AS3 code and for the swfobject Flashvars that need to be pasted and that’s fine - no errors.

    The problem is that when I paste in the URL (which is formatted like this: http://srssoft.slideshowpro.com/images.php?album=68145) the URL itself gets truncated and doesn’t display. It gets mangled like this when rendered: xmlfile=http://srssoft.slideshowpro.com/images.phpalbu

    I have tried using a a weblink to redirect the in MODx, but that doesn’t work, resulting in an empty Slideshow.

    My assumption is that the snippet isnt allowing the "?" in the URL string.

    Any ideas?
      • 10449
      • 956 Posts
      Yes, you can’t pass ? = & characters...

      Just construct it in a way that you only need to enter the album id (e.g. 68145) in your TV / template(s)
        • 15871
        • 105 Posts
        I’ve been trying to do what you suggested, the issue I am having is that I am using the AS3 version so the code is giving me some problems:

        I tried this:

        var theFilePath = "http://srssoft.slideshowpro.com/images.php?album="
        var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
        for (var param in paramObj) {
           if (param == "xmlfile") {
              my_ssp.xmlFilePath = theFilePath + paramObj[param];
           }
           if (param == "xmlfiletype") {
              my_ssp.xmlFileType = paramObj[param];
           }
        }


        Then I pass the Flashvar in through the snippet. Unfortunately it doesn’t work. This all seemed so cut and dried with AS2. Thoughts?