Code Snippets

Narration Hints:

a) showcontinue(isSoundComplete());
It shows the continue, but disables the pause only if the narration is finished.
The showcontinue is going in the guts of the code when some action is complete and you want to disable the pause button depending on whether the narration is still going

It is used in conjunction with something like
which kills the pause when it is done. b)
this.createEmptyMovieClip("debug_mc", this.getNextHighestDepth());

this.debug_mc.onEnterFrame = function(){

trace("frame: "+this._parent._currentframe+", narration position: "+this._parent._parent.mySound.position);


This is the code I used to check on the narration sound – it creates an empty movie clip so that an onEnterFrame can be set that won’t interfere with the wrapper or scene. (Ross)