Getbytestotal (Sound.getbytestotal Method); Getpan (Sound.getpan Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

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
- An integer indicating the total size, in bytes, of the specified Sound object.
Number
Example
For a sample usage of this method, see
See also
getBytesLoaded (Sound.getBytesLoaded method)

getPan (Sound.getPan method)

public getPan() : Number
Returns the pan level set in the last
(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
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
- An integer.
Number
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);
602
ActionScript classes
Sound.getBytesLoaded()
call as an integer from -100 (left) to +100
setPan()
or
setVolume()
setTransform()
.
.

Advertisement

Table of Contents
loading

Table of Contents