![MACROMEDIA Flash Lite 2 Скачать руководство пользователя страница 602](http://html1.mh-extra.com/html/macromedia/flash-lite-2/flash-lite-2_reference_687553602.webp)
602
ActionScript classes
getBytesTotal (Sound.getBytesTotal method)
public getBytesTotal() : Number
Returns the size, in bytes, of the specified Sound object.
Availability:
ActionScript 1.0; Flash Lite 2.0
Returns
Number
- An integer indicating the total size, in bytes, of the specified Sound object.
Example
For a sample usage of this method, see
Sound.getBytesLoaded()
.
See also
getBytesLoaded (Sound.getBytesLoaded method)
getPan (Sound.getPan method)
public getPan() : Number
Returns the pan level set in the last
setPan()
call as an integer from -100 (left) to +100
(right). (0 sets the left and right channels equally.) The pan setting controls the left-right
balance of the current and future sounds in a SWF file.
This method is cumulative with
setVolume()
or
setTransform()
.
Note:
Flash Lite 2.0 supports this method for native Flash sound only. The sound formats
that are specific to a host device are not supported.
Availability:
ActionScript 1.0; Flash Lite 2.0
Returns
Number
- An integer.
Example
The following example creates a text field to display the value of the pan level for native Flash
sound. The linkage identifier for the sound is "combo". Add the following ActionScript to
your FLA or AS file:
this.createTextField("pan_txt", 1, 0, 100, 100, 100);
mix=new Sound();
mix.attachSound("combo");
mix.start();
mix.setPan(-100);
pan_txt.text = mix.getPan(this);
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...