I made some changes in my highlight object to reflect Colin's cueing method using findPosNear() instead of the actual cuepoints in the sound files. The changed I needed to make were trivial and only took a few minutes. The improvement is astounding!!!
I imported all the relevant linked sounds into the cast so that I could grab their cuepoints with member(soundMember).cuePointTimes in the highlight object. One of the benefits is that any changes to the sounds that might change the cuepoints will be automatically picked up there without my having to tweak the code in any way. Where before: lastCue = sound(pSoundChannel).mostRecentCuePoint returned the proper cue point (when it worked) now: currTimeElapsed = sound(pSoundChannel).elapsedTime lastCue = pTimeCodes.findPosNear(currTimeElapsed) along with some accounting for the fact that the latter method returns a number 1 higher than the former. does the same thing and at this point, vastly more reliably. Thanks for the help, Colin and Irv. [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
