4 Replies Latest reply on Jul 13, 2009 9:45 AM by Ned Murphy

    Problem loading external SWF into Flash Movie

    iamthegif2

      I'm trying to load an external swf (which is a slide show) into a flash movie. The swf shows in the movie and seemingly plays ok but there's something wrong. On the last image(3rd) in the slide show the buttons stop responding and when I click "previous" button on the second slide it goes to the third slide rather than the first. When I check swf file itself it works fine, it's only in the flash movie where everything gets jumbled.

       

      Link to Flash movie:

      http://www.dagif.com/habanaHarlem.swf

       

      This is the code I put in the flash movie:

      holder_mc.loadMovie("http://www.dagif.com/slideplayerHabana.swf");

       

      Link to external swf: http://www.dagif.com/slideplayerHabana.swf

       

      This is the code to the external swf:

      stop();
      next_btn.onRelease = function() {
          if (_root._currentframe == 3){
               gotoAndStop(1);
          }
          else {
              nextFrame();
              }
      }
      stop();

       

      previous_btn.onRelease = function() {
          if (_root._currentframe == 1){
              gotoAndStop(3);
          }
          else {
              prevFrame();
              }
             
      }

       


      num1_btn.onRelease = function() {
          gotoAndPlay(1);
          stop();
         
      }
      num2_btn.onRelease = function() {
          gotoAndPlay(2);
          stop();
         
         
         
      }
      num3_btn.onRelease = function() {
          gotoAndPlay(3);
          stop();
         
      }