If you want to fire messages at predetermined times then use callbacks.

First make a list with your callbacks with the format time,message

ie.

2000,mySelectline
3000,mySelectline
4000,mySelectline

then you set the callbacks of your player to that list.

then when your player plays it will send the mySelectline message with the
time as a parameter when it encounters the times in the list.

you then need a mySelectline handler in your player or card or stack to
handle the message. 
ie.

on mySelectline thetime
  select line whatsmyline(thetime) of field "myfield"

end my selectline

in that handler you need a way to associate the time value with the line
that you want to select you could put that in the whatsmyline handler.

This will only work however when playing.  If you want to have the lines
selected when scrubbing to points in the movie you will have to get the
currenttime or handle the currenttimechanged message to determine where you
are in the movie relative to your callback time points.

Martin

-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Video-player-messages-tp3167226p3167653.html
Sent from the Revolution - User mailing list archive at Nabble.com.

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to