5 Replies Latest reply on Jul 18, 2010 8:24 AM by Andrei1

    Help with looping

    scottleg

      Hello all. Hoping someone can help. I have no experiance with flash or action script, but have a slide show that displays several images and captions. You can click next and previous to view the next or prev image. I'd like to get this to auto play, and loop, through each of the slides automatically, instead of having to click the next button to view any of the other images. When the last image is displayed, i'd like it to loop back to slide one.

       

      Again, have no idea if this is even possible with my current flash file, but hoping someone can lend some advice.

       

      Also, the fla. file doesnt contain any images. There is an xml file named "images.xml" that stores the image information.

       

      Here is the flash on the site: www.nugentappraisal.com

       

      Here is what the source looks like:

       

        <script language="JavaScript" type="text/javascript">
      <!--
      var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
      if(hasRightVersion) {  // if we've detected an acceptable version
          var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
          + 'width="510" height="212"'
          + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
          + '<param name="movie" value="mainflash.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ff9900" />'
          + '<embed src="mainflash.swf" quality="high" scale="noscale" wmode="transparent" bgcolor="#ff9900" '
          + 'width="510" height="212" name="mainflash" align="middle"'
          + 'play="true"'
          + 'loop="false"'
          + 'quality="high"'
          + 'allowScriptAccess="sameDomain"'
          + 'type="application/x-shockwave-flash"'
          + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
          + '<\/embed>'
          + '<\/object>';
          document.write(oeTags);   // embed the flash movie
        } else {  // flash is too old or we can't detect the plugin
          var alternateContent = 'Alternate HTML content should be placed here.'
             + 'This content requires the Macromedia Flash Player.'
              + '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
          document.write(alternateContent);  // insert non-flash content
        }
      // -->
      </script>
      <noscript>
           This content requires the Macromedia Flash Player.
             <a href="http://www.macromedia.com/go/getflash/">Get Flash</a>       
      </noscript>