MC Tween: it saves the world.™

Home | Using MC Tween | Documentation | AS2 usage notes | Animation Types | Downloads | Examples | Extensions | Author & Disclaimer | Links

.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.

All other parameters are standard tween() related. Refer to the .tween() method for reference.

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

Sound.setPan()

MC Tween· Zeh Fernando, 2003-2006 · Proudly hosted at DreamHost · Disclaimer