We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19369
    • 1,098 Posts
    Hi, I’ve got a problem with a xml flash slideshow.

    I can see the swf loading, but it doesn’t display any image. I’ve already changed the url in both html and xml files, but doesn’t change anything. Is there any tutorial that shows how to deal with flash? I’ve already checked many pages in the forum and I didn’t find much about this. I remember that I’ve had the same problem with wordpress and I couldn’t find a solution.

    Thanks in advance.
      • 19369
      • 1,098 Posts
      Here’s my code:
      HEADER & Flash
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <title>[*pagetitle*] - [(site_name)]</title>
      <base href="[(site_url)]"></base>
      <meta http-equiv="Content-Type" content="text/html; charset=[(modx_charset)]" />
      <script type="text/javascript">AC_FL_RunContent = 0;</script>
      <script type="text/javascript" src="assets/templates/js/AC_RunActiveContent.js"></script>
      </head>
      <body>
      
      <div id="flash">
      <script type="text/javascript">// <![CDATA[
      			AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','name','slide','width','590','height','300','align','middle','id','slide','src','slide','quality','high','scale','noscale','wmode','transparent','bgcolor','#333333','allowscriptaccess','sameDomain','allowfullscreen','false','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','slide'  ); //end AC code
      // ]]></script>
      <object id="slide" width="590" height="300" data="assets/templates/slide.swf" type="application/x-shockwave-flash">
      <param name="name" value="slide" />
      <param name="quality" value="high" />
      <param name="allowFullScreen" value="false" />
      <param name="wmode" value="transparent" />
      <param name="src" value="assets/templates/slide.swf" />
      </object>
      </div>
      
      


      XML
      <?xml version="1.0" encoding= "UTF-8" ?>
      <ImageFiles transition="Random" autoSlide="true" Delay="3" xPosition="0" yPosition="10">
      	<images path="images/1.jpg" title="www.google.com" url="http://www.google.com" />
      	<images path="images/2.jpg" title="www.google.com" url="http://www.google.com" />
      	<images path="images/3.jpg" title="www.google.com" url="http://www.google.com" />
      	<images path="images/4.jpg" title="www.google.com" url="http://www.google.com" />
      	<images path="images/5.jpg" title="www.google.com" url="http://www.google.com" />
      	<images path="images/6.jpg" title="www.google.com" url="http://www.google.com" />
      	<images path="images/7.jpg" title="www.google.com" url="http://www.google.com" />
      </ImageFiles>
      


      The folder for swf and xml is assets/templates
      The folder for images is assets/templates/images

      I can’t understand where is the mistake huh
        • 19369
        • 1,098 Posts
        If I put xml and images in the root the slideshow works, so probably it’s a path problem. Is there a way to fix it without opening flash source file?
          • 16702 ☆ A M B ☆
          • 536 Posts
          http://kb2.adobe.com/cps/142/tn_14213.html
          http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html

          something like this (in root folder):

          <cross-domain-policy>
          <allow-access-from domain="*"/>
          </cross-domain-policy>
          
            palma non sine pulvere
            • 19369
            • 1,098 Posts
            Thanks Kristalin I’ll try it