1100
ActionScript classes
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.p" of "+the_sound.d"
milliseconds ("+pos+"%)"+newline;
}
The
MovieClip.getNextHighestDepth()
method used in this example requires Flash Player
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
MovieClip.getNextHighestDepth()
method.
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
Number
- An integer indicating the total size, in bytes, of the specified Sound object.
Example
See
Sound.getBytesLoaded()
for a sample usage of this method.
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()
.
Availability:
ActionScript 1.0; Flash Player 5
Returns
Number
- An integer.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...