I think an easier solution is to use 2 lists.
One is your master list, from which you will make
a duplicate temp list.
Make a master list of cuePointTimes.
Then, make a temp list duplicate of the master.
Each time you move the slider, you duplicate your master.
Compare the movieTime with the temp list.
Find the nearest higher cue point to the movieTime,
and remove all the entries in the temp list that
are before the next cue point time.
Now you've got a dynamic list that you can use
to enact cue points from the current location
in the movie.
HTH,
Steven Sacks
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Carl West
> Sent: Wednesday, October 25, 2000 10:39 AM
> To: [EMAIL PROTECTED]
> Subject: Re: <lingo-l> mostRecentCuePoint not so recent
>
>
> Brian Pitts wrote:
> > ...It appears that for the "cue" lingo to work
> > correctly, requires that the QT "playback head" must MOVE
> THROUGH EACH CUE
> > POINT DURING NORMAL PLAYBACK for detectection by lingo. This presents a
> > problem if you want to use a slider and dynamically execute
> custom handlers
> > as you pass through cuePoints...
> >
> > Any comments or suggestions would be appreciated.
>
>
> You can get what you want with some list mangling:
>
> Pull out the list of cuePointTimes from the movie or sound, sort it and
> hold onto it.
>
> Compare your current movieTime against the list: check for an exact
> match, failing that, add the current movieTime to the list, see where it
> is in the list, take the item one less than that as your answer then
> delete the current movieTime from the list.
>
>
>
> --
> Carl West [EMAIL PROTECTED]
> 617.262.8830 x246
>
> I have no superfluous leisure; my stay must be
> stolen out of other affairs; but I will attend you awhile.
>
> - Isabella, Measure for Measure, Act 3 Scene 1
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/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!]
>
>
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]