5 Replies Latest reply on Jul 23, 2016 6:44 AM by kglad

    How to auto run a button event?

    xu zhang Level 1

      Hello!

      I have a animate cc html5 canvas files,the code like this:

      ex:

      btn.on('click',function(){
        playSound('help')
      })
      btn.click();
      

      it tips that "click not a function"

      how can i don't click the button and let's this button autorun click?

      Thanks!

       

      消息编辑者为:xu zhang animate cc html5 Canvas files