当前位置:首页 > 设计在线 > 平面动画 > Flash > flash 远程语音回放控制(as)

flash 远程语音回放控制(as)

点击次数:28 次 发布日期:2008-11-21 23:32:06 作者:源代码网
源代码网推荐 var my_sound:Sound = new Sound();
var ntxt = 0;
var ntxts = 0;
my_sound.setPan(0);
my_sound.setVolume(50);
sou_ztid.bara._yscale = my_sound.getVolume();
sou_soutest.left = 656;
sou_soutest.right = sou_soutest.left+100;
sou_soutest.top = sou_soutest._y;
sou_soutest.bottom = sou_soutest._y;
sou_soutest._x = sou_soutest.left+my_sound.getVolume();
sou_soutest.onPress = function() {
startDrag(this, true, this.left, this.top, this.right, this.bottom);
};
my_sou_max = function (soumax) {
if (sp_leve_1.enabled == true) {
   my_sound.setVolume(soumax);
   sou_ztid.bara._yscale = my_sound.getVolume();
} else {
   my_sound.setVolume(0);
   sou_ztid.bara._yscale = my_sound.getVolume();
}
};
sou_soutest.onRelease = function() {
stopDrag();
my_sou_max(this._x-this.left);
};
sou_soutest.onMouseMove = function() {
my_sou_max(this._x-this.left);
};
sou_soutest.onReleaseOutside = function() {
stopDrag();
my_sou_max(this._x-this.left);
};
源代码网供稿.
网友评论 (0)
会员中心
设计在线
本站推荐
设计在线之精华