Soundbuftime (Button._Soundbuftime Property) - 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

Example
The following example rotates two buttons on the Stage. Create two buttons on the Stage
called
and
control_btn
see it rotating. Then enter the following ActionScript in Frame 1 of the Timeline:
var control_btn:Button;
var my_btn:Button;
control_btn.onRelease = function() {
my_btn._rotation += 10;
};
Now create another button on the Stage called
round (so you can see it rotate). Enter the following ActionScript in Frame 1 of the Timeline.
var myOther_btn:Button;
this.createEmptyMovieClip("rotater_mc", this.getNextHighestDepth());
rotater_mc.onEnterFrame = function() {
myOther_btn._rotation += 2;
};
See also
_rotation (MovieClip._rotation property)
property)

_soundbuftime (Button._soundbuftime property)

public _soundbuftime :
Specifies the number of seconds a sound prebuffers before it starts to stream.
Note: Although you can specify this property for a Button object, it is actually a global
property that applies to all sounds loaded, and you can specify its value simply as
. Setting this property for a Button object actually sets the global property.
_soundbuftime
For more information and an example, see
Availability: ActionScript 1.0; Flash Lite 2.0
See also
_soundbuftime property
288
ActionScript classes
. Make sure that
my_btn
Number
_soundbuftime
is not perfectly round, so you can
my_btn
, making sure it isnt perfectly
myOther_btn
,
_rotation (TextField._rotation
.

Advertisement

Table of Contents
loading

Table of Contents