Accessing a variable on the main timeline from a movieclip (HTML CANVAS)
Hi, I have a variable declared on the main timeline:
var myNum= 0;
and i have a movieclip that, if allowed to play to a certain frame without interaction, it needs to add up to that variable on the main timeline. I tried using the following code:
this.parent.myNum = this.parent.myNum + 1;
but it doesn't work and can't seem to find the variable at all. What is the correct syntax for this? Can someone please help? Thanks!
