Flash8自带的音乐控制按钮如何使用?
这个按钮在公用库中
其内AS为:
top = vol._y;
left = vol._x;
right = vol._x;
bottom = vol._y+100;
level = 100;
//
vol.onPress = function() {
startDrag("vol", false, left, top, right, bottom);
dragging = true;
};
vol.onRelease = function() {
stopDrag();
dragging = false;
};
vol.onReleaseOutside = function() {
dragging = false;
};
//
this.onEnterFrame = function() {
if (dragging) {
level = 100-(vol._y-top);
} else {
if (level>100) {
level = 100;
} else if (level<0) {
level = 0;
} else {
vol._y = -level+100+top;
}
}
sound.setVolume(level);
};
怎么将它拖到舞台中使用?
附件
-
1.jpg
(12.72 KB)
-
2008-4-21 18:52