If I have a movieClip on the root timeline with the instance name of box. Inside the MC I have a colored square shape and the following code:
myNum = 5;
EDIT: In desparate act to get any response I have also on the line below:
var myNum = 3;
just to cover all my bases, but still no output response of either value END OF EDIT.
On the root timeline I have :
this.box.addEventListener("click", clickHandler);
function clickHandler(e) {
console.log(e.currentTarget.myNum);
}
this returns undefined. How do I access myNum?