EasyManua.ls Logo

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

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.position+" of "+the_sound.duration+"
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.

Table of Contents

Related product manuals