![MACROMEDIA Flash Lite 2 Скачать руководство пользователя страница 288](http://html1.mh-extra.com/html/macromedia/flash-lite-2/flash-lite-2_reference_687553288.webp)
288
ActionScript classes
Example
The following example rotates two buttons on the Stage. Create two buttons on the Stage
called
control_btn
and
my_btn
. Make sure that
my_btn
is not perfectly round, so you can
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._ro= 10;
};
Now create another button on the Stage called
myOther_btn
, making sure it isnt perfectly
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._ro= 2;
};
See also
_rotation (MovieClip._rotation property)
,
_rotation (TextField._rotation
property)
_soundbuftime (Button._soundbuftime property)
public _soundbuftime :
Number
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
_soundbuftime
. Setting this property for a Button object actually sets the global property.
For more information and an example, see
_soundbuftime
.
Availability:
ActionScript 1.0; Flash Lite 2.0
See also
_soundbuftime property
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...