setTimeout Not Working in iframe with Global Variable
I am working on an animation piece and was using setTimeout to pause the playhead.
I am using a global variable (at least I think I am). Where in the main timeline in the first frame I have:
window.wordpause=300;Then in a MovieClip that shows up on the second frame of the main timeline I have this code (in the movieClip) to pause the playhead for the value in the "wordpause" variable.
this.stop();
setTimeout(this.play.bind(this), parent.wordpause);This works fine when viewing the HTML file via a direct path to its page. But when I place this inside an iframe, it appears that variable is not working, there is no pause at all between frames so the piece runs super fast.
I have tried to find a tutorial for using global variables (assigning them and using them), but have not come up with anything. I saw one suggestion of using
document.wordpause=300;But that does not work. Any help with this issue would be appreciated.
I know my client will be tweaking the speed of things and rather than having to fiddle with everything via the timeline by adding or subtracting frames, I thought I could simple change the speed with a variable.
