This content has been marked as final. Show 3 replies
check the sound class for all the methods (including start() ) that you can use. but you're not able to control sounds to within .01 seconds. on the other hand, doubt anyone could determine whether a sound played for .55 or .58 seconds.
It looks like the start method of the Sound class does let you specify an arbitrary starting point, but NOT an arbitrary stopping point. So it lets you begin playing the sound somewhere other than at its start, but you have to apparently let it always play through to the absolute end of the sound. Are there any other methods I should look at?
What about using the Media component(s) with cue points? What if I set a cue point for the arbitrary end time and then silenced the sound when that cue point fired?
you can stop any sound object using the stop() method. you must initiate a loop/timer that will trigger a sound.stop() statement at the required time.