6 Replies Latest reply on Mar 31, 2017 5:49 AM by paul_james123

    Converting a string to a movie clip name

    paul_james123 Level 1

      Hi All,

      I'm using Animate CC to build an HTML5<canvas> final product.

      Again, I'm still learning the terminology so I can do effectively search for answers. This one is eluding me:

      How do I convert a string, like "myInstanceName" to something I can use (as the name of the instance) in a line of code like:

       

      stage.myInstanceName.addEventListener("click", myFunction.bind(this));

       

      Thanks much!