7 Replies Latest reply on Jun 5, 2017 2:59 AM by David Marston

    Buttons targeting one movie clip from another

    David Marston

      Hi,

       

      I currently have a button on the main timeline which targets an object in a movieclip.

       

      This is what I have currently:

       

      import fl.transitions.Tween;
      import fl.transitions.easing.*;
      btn1.addEventListener(MouseEvent.CLICK, ten);
      
      function ten(e: MouseEvent) {
        new Tween(cat1_mc.circle1, "scaleX", Strong.easeOut, 0.0, 0.1, 2, true)
        new Tween(cat1_mc.circle1, "scaleY", Strong.easeOut, 0.0, 0.1, 2, true);
      }
      

       

       

      But now that button is in another movie clip called "controls_mc" - not on the main timeline.

       

      What would be the path from the button in "controls_mc" to "cat1_mc.circle1 " ???

       

      I've tried numerous recommendations but no result yet!!


      Thanks