I've tested against currentTime in the past and ,unfortunately,
that isn't really accurate enough.

When testing for currentTime (as you know) you can't evaluate
equality. You can only evaluate < or >. This means that you
can't evaluate for = 0, or even >0 because the result will
ALWAYS be > 0. The only way to do it is to chose "some time slice"
before the end of the sound to evaluate against.
( member(1).duration = 1500 , myEval = member(1).duration - 400)

The problem with that is that you will get different results
depending on the speed of the machine that you run this on.

If you are looking to evaluate whether or not the queue has popped
you should look into using something like:
              ( sound(x).getPlayList().count)

This will give you an accurate number of queued sounds that you
can evaluate against in exitFrame or stepFrame

- jp



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Charlie Fiskeaux II
Sent: Thursday, June 14, 2001 7:17 AM
To: [EMAIL PROTECTED]
Subject: Re: <lingo-l> queued sounds


I haven't tested to see if this is practical or not, but you might be able
to use sound(x).currentTime.  CurrentTime gives the time in milliseconds
from the beginning of the sound file.  (unlike elapsedTime, which measures
the time since the play() command was given, including skips and loops,
currentTime measures the absolute time of the file).  You could continually
test for a low currentTime, indicating that a new file just started playing.
(Assuming you don't need to differentiate between files.)

Charlie Fiskeaux II
The Creative Group
www.cre8tivegroup.com
859/858-9054 x29
cell: 859/312-3883


----- Original Message -----
From: "Michael Nadel" <[EMAIL PROTECTED]>
To: "Buzz Kettles" <[EMAIL PROTECTED]>
Cc: "HandyMan" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, June 14, 2001 5:03 AM
Subject: Re: <lingo-l> queued sounds


When a queued list of sounds is playing, I did notice that you can monitor
this: "sound(n).member.membernum"

The question though is, does anyone have any ideas how I could monitor it as
it plays, and get Director to execute a handler each time
"sound(n).member.membernum" changes?

Thanks for any ideas!

Michael Nadel
[EMAIL PROTECTED]
Mediart - Multimedia as an Art Form










[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!]



[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!]

Reply via email to