
_soundbuftime Global Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
792
|
ActionScript Language Reference
// Attach a doorknock sound to the object
myOtherSound.attachSound("doorknock");
// Play doorknock
myOtherSound.start();
// Now stop the doorknock through mySound, not myOtherSound.
// This works because the two Sound objects have the same target.
mySound.stop("doorknock");
See Also
Sound.attachSound(), Sound.start(), stopAllSounds()
_soundbuftime Global Property
length of a streaming sound, in seconds, to preload
Flash 4
read/write
_soundbuftime
Description
The _soundbuftime property is an integer specifying the number of seconds of a streamed
sound to preload before playing the sound (the default is 5 seconds). It applies to both
timeline sounds and sounds loaded at runtime via Sound.loadSound().
Flash synchronizes movie playback with streaming sounds to ensure that, say, a cartoon
character’s lips match an accompanying soundtrack. Animations will pause until
_soundbuftime seconds of streaming sound are downloaded; therefore, a large setting (long
delay) can cause excessive startup times on slower connections. Because network
streaming may be slow or briefly interrupted, a short
_soundbuftime setting can cause
sound to skip (i.e., if enough sound data wasn’t buffered, sounds may be interrupted
temporarily). The ideal setting