flash 远程语音回放控制(as)
点击次数:28 次 发布日期:2008-11-21 23:32:06 作者:源代码网
|
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); }; 源代码网供稿. |
