03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

See also<br />

getBytesTotal (Sound.getBytesTotal method)<br />

getBytesTotal (Sound.getBytesTotal method)<br />

public getBytesTotal() : Number<br />

Returns the size, in bytes, of the specified Sound object.<br />

Returns<br />

Number - An integer indicating the total size, in bytes, of the specified Sound object.<br />

Example<br />

For a sample usage of this method, see Sound.getBytesLoaded().<br />

See also<br />

getBytesLoaded (Sound.getBytesLoaded method)<br />

getPan (Sound.getPan method)<br />

public getPan() : Number<br />

Returns the pan level set in the last setPan() call as an integer from -100 (left) to +100<br />

(right). (0 sets the left <strong>and</strong> right channels equally.) The pan setting controls the left-right<br />

balance of the current <strong>and</strong> future sounds in a SWF file.<br />

This method is cumulative with setVolume() or setTransform().<br />

Note: Flash Lite 2.0 supports this method for native Flash sound only. The sound formats<br />

that are specific to a host device are not supported.<br />

Returns<br />

Number - An integer.<br />

Example<br />

The following example creates a text field to display the value of the pan level for native Flash<br />

sound. The linkage identifier for the sound is "combo". Add the following ActionScript to<br />

your FLA or AS file:<br />

this.createTextField("pan_txt", 1, 0, 100, 100, 100);<br />

mix=new Sound();<br />

mix.attachSound("combo");<br />

mix.start();<br />

mix.setPan(-100);<br />

Sound 569

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!