Professional Documents
Culture Documents
Action
Action
This.createEmptyMovieClip(“clip1”,2);
Backsound.setVolume(100);
Play_btn.onPress = function() {
If (Stop) {
Backsound.start(posisi);
Stop = false;
Backsound.onSoundComplete = function() {
mainkanMusik();
};
};
Stop_btn.onPress = function() {
Stop = true;
Backsound.stop();
};
Backsound.attachSound(“backsound”);
Backsound.start(0, 999);
Volume.onPress = function() {
Kanan = _root.garis._x+200;
Kiri = _root.garis._x;
Atas = _root.garis._y;
Bawah = _root.garis._y;
};
Volume.onMouseMove = function() {
myPoint.x = this._x;
myPoint.y = this._y;
_root.garis.globalToLocal(myPoint);
_root.backsound.setVolume(myPoint.x);
};
Volume.onRelease = volume.onReleaseOutside=function () {
stopDrag();
};
This.createEmptyMovieClip(“clip1”,2);
Backsound.setVolume(100);
Play_btn.onPress = function() {
//jika variable Stop bernilai true
If (Stop) {
Backsound.start(posisi);
Stop = false;
Backsound.onSoundComplete = function() {
mainkanMusik();
};
};
Stop_btn.onPress = function() {
Stop = true;
Backsound.stop();
};