5 Replies Latest reply on Sep 14, 2016 6:19 AM by kglad

    restart functions of movieclips


      Hello. I have a very simple conceptual map. To start, it only shows a button (b1) and when you click it the next one (g1) appears. Everything works ok, but I have a "reload" button to hide everything and show only the first button (b1) in its original position again and I don't know how to code it. Can you help me?


      Show you the code:


      "To hide g1"

      this.g1.alpha = 0


      "To make g1 appear and change color of button b1"

      this.b1.addEventListener("click", fl_MouseClickHandler_2.bind(this));


      function fl_MouseClickHandler_2()



        this.b1.removeEventListener("click", fl_MouseClickHandler_2.bind(this));

      this.addEventListener('tick', fl_FadeSymbolIn.bind(this));

      this.g1.alpha = 0;


      function fl_FadeSymbolIn()


        this.g1.alpha += 0.04;

        if(this.g1.alpha >= 1)


        this.removeEventListener('tick', fl_FadeSymbolIn.bind(this));