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

Actionscript 2.0 language reference
Table of Contents

Advertisement

var pos:Number = Math.round(the_sound.position/the_sound.duration 100);
status_txt.text = the_sound.getBytesLoaded()+" of
"+the_sound.getBytesTotal()+" bytes ("+pct+"%)"+newline;
status_txt.text += the_sound.position+" of "+the_sound.duration+"
milliseconds ("+pos+"%)"+newline;
}
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
See also

getBytesTotal (Sound.getBytesTotal method)

getBytesTotal (Sound.getBytesTotal method)
public getBytesTotal() : Number
Returns the size, in bytes, of the specified Sound object.
Availability: ActionScript 1.0; Flash Player 6
Returns
- An integer indicating the total size, in bytes, of the specified Sound object.
Number
Example
See
Sound.getBytesLoaded()
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
Availability: ActionScript 1.0; Flash Player 5
Returns
- An integer.
Number
1100
ActionScript classes
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
for a sample usage of this method.
call as an integer from -100 (left) to +100
setPan()
or
setVolume()
setTransform()
method.
.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF