relativo ad un pulsante play, uno stop, ed una barra(groove) con relativo cursore(slider) per il controllo del volume...
problema: la musica non parte.
codice:play_btn.onRelease = function(){ mySong = new Sound(); mySong.attachSound("http://fantaugourdeau.altervista.org/audio.mp3"); mySong.start(0, 50); } stop_btn.onRelease = function(){ stopAllSounds; } slider_1.onPress = function(){ this.startDrag(true, _root.groove_1._x, _root.groove_1._y, _root.groove_1._x + 90, _root.groove_1._y); } slider_1.onRelease = function(){ this.stopDrag(); } slider_1.onMouseMove = function(){ newPoint = new Object(); newPoint.x = this._x newPoint.y = this._y _root.groove_1.globalToLocal(newPoint); _root.mySong.setVolume(-1*newPoint.x); }

Rispondi quotando