|
.panTo() Applies To Sound Availability Flash 6 and above, using AS1. Usage <Sound>.panTo(panning [, seconds, animation type, delay, callback, extra1, extra2]); Parameters panning : Desired panning value. This ranges from -100 to 100; -100 concentrates all sound on the left speaker, 100 concentrates on the right speaker, and 0 is the normal setting, using both speakers. Returns Nothing. Description Shortcut method; does a sound panning on aSound object, going to an specific panning setting. This the tweening equivalent of using Sound.setPan(), and can be used to emulate moving/locational audio in Flash. Examples // Makes a movie sound like something is moving from the left to the right sideof the screen <Sound>.setPan(-100); <Sound>.panTo(100); See Also |