Question
Why aren't my other music files working!?!?
Here's the code...
// initialize starting track
var soundNext:String = "beats01";
// set up dynamic sound object
var dynamicSound:Sound = new Sound(this);
dynamicSound.attachSound(soundNext);
dynamicSound.start(0, 1);
nowPlaying.text = soundNext;
beats01.onRelease = beats02.onRelease = beats03.onRelease = beats04.onRelease = beats05.onRelease = beats06.onRelease = beats07.onRelease = beats08.onRelease=function () {
soundNext = this._name;
nextTrack.text = soundNext;
};
// trigger next sound
dynamicSound.onSoundComplete = function() {
dynamicSound.attachSound(soundNext);
dynamicSound.start(0, 1);
nowPlaying.text = soundNext;
};
// stop the timeline
stop();
beats05-08 aren't working. I press the button and it gives the name of the song but plays the current one instead. Could it be because the first 4 are the same size while the last 4 vary?
He's random other code.
function drag() {
this.startDrag(false, -50, -50, 50, 50);
this.onEnterFrame = function() {
pan = 2*this._x;
vol = 50+this._y;
loopSound.setPan(pan);
loopSound.setVolume(vol);
this._parent.pan.text = pan;
this._parent.vol.text = vol;
};
this.onMouseMove = function() {
updateAfterEvent();
};
}
function drop() {
this.stopDrag();
delete this.onEnterFrame;
delete this.onMouseMove;
}
// initialize starting track
var soundNext:String = "beats01";
// set up dynamic sound object
var dynamicSound:Sound = new Sound(this);
dynamicSound.attachSound(soundNext);
dynamicSound.start(0, 1);
nowPlaying.text = soundNext;
beats01.onRelease = beats02.onRelease = beats03.onRelease = beats04.onRelease = beats05.onRelease = beats06.onRelease = beats07.onRelease = beats08.onRelease=function () {
soundNext = this._name;
nextTrack.text = soundNext;
};
// trigger next sound
dynamicSound.onSoundComplete = function() {
dynamicSound.attachSound(soundNext);
dynamicSound.start(0, 1);
nowPlaying.text = soundNext;
};
// stop the timeline
stop();
beats05-08 aren't working. I press the button and it gives the name of the song but plays the current one instead. Could it be because the first 4 are the same size while the last 4 vary?
He's random other code.
function drag() {
this.startDrag(false, -50, -50, 50, 50);
this.onEnterFrame = function() {
pan = 2*this._x;
vol = 50+this._y;
loopSound.setPan(pan);
loopSound.setVolume(vol);
this._parent.pan.text = pan;
this._parent.vol.text = vol;
};
this.onMouseMove = function() {
updateAfterEvent();
};
}
function drop() {
this.stopDrag();
delete this.onEnterFrame;
delete this.onMouseMove;
}