Duration is a read-only property, unless it's changed recently.  It'll tell 
you the length of a sound, but is not used to control sound playback.

There are a variety of ways to test/cycle, but duration is not one of them, 
sorry...


At 01:59 PM 6/10/02 -0700, Leah Kramer wrote:
>Hi all,
>
>Is the "duration" property of a sound cast member reliable?
>
>I want to create my own version of the built-in setPlayList function that will
>take a mixture of sound members and flash sprites and play them one after
>another.
>
>I was thinking that I could use "duration" to schedule the next thing in the
>list to play after the current sound is done.  But I'm not sure how safe it is
>to assume that the "duration" value is really how long it will take for the
>sound to play.
>
>I'm just hoping to avoid having to use exitFrame to keep checking whether the
>sound is done or not...
>
>Leah

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

Reply via email to