BioDread
Banned
مگه برای loop کردن یه آهنگ نباید انو این طوری نوشت song_sound.start(1,9999); که عدد 1 میگه از کجا بخونم و عدد 9999 تعداد دفعات تکراره ولی برای من فقط یک دفعه اجرا میشه
اینم کل کدمه
اینم کل کدمه
PHP:
musicnum = 1;
var song_sound:Sound = new Sound();
song_sound.loadSound("music"+musicnum+".mp3",true);
song_sound.start(1,9999);
this.createTextField("volume_txt", 10, 30, 30, 200, 20);
volume_mc.top = volume_mc._y;
volume_mc.bottom = volume_mc._y;
volume_mc.left = volume_mc._x;
volume_mc.right = volume_mc._x + 70;
volume_mc._x += 70;
volume_mc.handle_btn.onPress = function() {
startDrag(this._parent, false, this._parent.left, this._parent.top, this._parent.right, this._parent.bottom);
};
volume_mc.handle_btn.onRelease = function() {
stopDrag();
var level:Number = Math.ceil(this._parent._x - this._parent.left);
this._parent._parent.song_sound.setVolume(level);
this._parent._parent.volume_txt.text = level;
};
volume_mc.handle_btn.onReleaseOutside = function() {
stopDrag();
var level:Number = Math.ceil(this._parent._x - this._parent.left);
this._parent._parent.song_sound.setVolume(level);
this._parent._parent.volume_txt.text = level;
};