5 Replies Latest reply on Sep 27, 2016 9:24 AM by kglad

    trouble with converting a slideshow to html canvas

    ouida7

      I'm getting this message in Firebug console:

      TypeError: this.btnNextwoody is undefined

       

      I selected the button and used code snippets to write the code:

       

      this.btnNextWoody.addEventListener("click", fl_ClickToGoToAndPlayFromFrame_9.bind(this));

       

      function fl_ClickToGoToAndPlayFromFrame_9()

      {

        this.gotoAndPlay("raft");

      }

       

       

      My frames are labeled: truck, woody, raft.

       

      The first button plays the "truck" animation fine, and I can't find a difference in the way I defined the buttons. The code on btnNextTruck reads:

       

      this.stop();

       

      this.btnNextTruck.addEventListener("click", fl_ClickToGoToAndPlayFromFrame_2.bind(this));

       

      function fl_ClickToGoToAndPlayFromFrame_2()

      {

        this.gotoAndPlay("truck");

      }