it worked fine when i had the audio within the swf.
slider:
slider_1.onPress = function(){
this.startDrag(true, groove_1._x -8, groove_1._y, groove_1._x -78, groove_1._y);
}
slider_1.onRelease = function(){
this.stopDrag();
}
stop_btn.onRelease = function(){
stopAllSounds();
}
slider_1.onMouseMove = function(){
newPoint = new Object();
newPoint.x = this._x
newPoint.y = this._y
groove_1.globalToLocal(newPoint);
foffMusic.setVolume(-1*newPoint.x);
}
i understand that the sound object i created before was called foffMusic but now i've changed to this script to stream instead of attachSound
on(release){
stopAllSounds();
//Load Streaming mp3 behavior
if(_global.Behaviors == null)_global.Behaviors = {};
if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
if(typeof this.createEmptyMovieClip == 'undefined'){
this._parent.createEmptyMovieClip('BS_ftomm',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.foffMusic = new Sound(this._parent.BS_ftomm);
} else {
this.createEmptyMovieClip('_ftomm_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.foffMusic = new Sound(this.BS_ftomm);
}
_global.Behaviors.Sound.foffMusic.loadSound("-wont let me post url!!-ftomm.mp3",true);
// Play Sound Behavior
_global.Behaviors.Sound.foffMusic.start(0,1);
// End Play Sound Behavior
}
i thought that in this method i had named the sound object foffMusic (streaming the file ftomm.mp3). the sound plays fine but ive gone through alot of trial and error and trawled every forum for the solution bu i can't get it to work!
can anybody help?
thanks, Luke


Reply With Quote

Bookmarks