How to find the name of a movieclip
Hi All,
I'm new to Animate CC and I'm using it to build an HTML5<canvas> end product. (So, I think I'm looking for code that works with EasleJS).
I want to find the name of the movie clip clicked on by the user. Here's the relevant part of my main timeline script:
var stage = this;
stage.MovieClipInstance.addEventListener("click", findNameOfMovieclipClickedOn.bind(this)); //event listener
function findNameOfMovieclipClickedOn () {
document.getElementById("testOutput").innerHTML = "you clicked on:: "+ theName;
}
"this.name" just returns "null"
Also:
- Is there another forum where I could ask questions specific to using Animate CC for HTML5 <canvas> projects...or is this the best place for that?
- As I build this project, should I just be looking for syntax/code that pertains to EasleJS?
Thanks much!
