9 Replies Latest reply on Dec 9, 2016 2:51 AM by Nipun Asthana

    Animate CC2017 video component instance name

    coty_hsu Level 1

      Hi all-


      I have a video component named "mainVideo" and a mute button called "mute_mc" on the stage, I can do something like this without any problem:



      this.mute_mc.addEventListener("click", fl_MouseClickHandler.bind(this));


      function fl_MouseClickHandler()





      but now I want to mute the video without click event, I tried something like this:




      and the console threw me an error message said: Uncaught TypeError: Cannot read property 'mute' of undefined(…)


      Does anyone know what should I do to reference the video component in this case?