How do I change the value of a variable that was declared on the main timeline from a movieclip?
I am using canvas/javascript.
I have a variable that I declared and gave a value of false on the main timeline.
var end = false;I want to use this to track when a movie clip, named 'ani' that is on the main timeline, has reached its last frame.
I have tried multiple methods and none are working.
On the last frame of 'ani' I have tried...
this.parent.end = true;and
exportRoot.end = true;Neither worked.
If I do 'console.log' from within 'ani' it prints 'true'. But if I do 'console.log' from the main timeline it prints 'false'.
What am I doing wrong?
