1 Reply Latest reply on May 28, 2007 6:59 AM by kglad

    Help with SWF nested in a SWF

    jdvega
      I want to navigate between scenes on the main timeline from nested swf that holds a thumbnail carousel. Here's what I've done so far. For simplicity, the symbol and instance names are the same. I'm using Flash 8 Professional.

      I created carousel.swf to hold spinner_mc which is the thumbnail carousel made from three buttons: thumb1_btn, thumb2_btn and thumb3_btn.

      At runtime, carousel.swf is loaded into container_mc on the main timeline of index_swf.

      I want thumb1_btn, thumb2_btn and thumb3_btn to point out of carousel.swf and to "Gallery 1", "Gallery 2", and "Gallery 3" on the main timeline of index.swf. I put this code on the root timeline of carousel.swf and it hasn't worked. Not sure why.

      spinner_mc.thumbs1_btn.onRelease = function() {
      trace("Thumb 1 clicked");
      _level10.gotoAndPlay("Gallery 1", 1);
      };
      spinner_mc.thumbs2_btn.onRelease = function() {
      trace("Thumb 2 clicked");
      _level10.gotoAndPlay("Gallery 2", 1);
      };
      spinner_mc.thumbs3_btn.onRelease = function() {
      trace("Thumb 3 clicked");
      _level10.gotoAndPlay("Gallery 3", 1);
      };

      When I test index.swf, carousel.swf loads into container_mc and the trace text is reflected in the output panel but the scene does not change to the respective gallery. I've tried replacing _level10 with _parent._parent and _root._parent but these do not work either.

      Thanks for your interest in my question!