Question
Button text to change colour while sound streams
Hi guys/gals, I am an extreme newbie to ActionScript, and was
hoping I could catch some help. I am streaming sound files for a
customer with a simple button I created using text, using this
stock behaviour code below. I would like the text in the button to
change colour while the audio streams and return to its previous
state when the audio is finished streaming. Is this possible? And
if so, is there anyone who could offer up some sample code to to
get me started?
Thanks very much for anyone's time who reads this or responds.
Cheers
on (release) {
//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_waltz',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.waltz = new Sound(this._parent.BS_waltz);
} else {
this.createEmptyMovieClip('_waltz_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.waltz = new Sound(this.BS_waltz);
}
_global.Behaviors.Sound.waltz.loadSound(" http://www.langleyukes.com/LUE/MP3/Recordings/Classical_Ukuleles/sound_files/Danube_Waltz_clip.mp3",true);
}
Thanks very much for anyone's time who reads this or responds.
Cheers
on (release) {
//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_waltz',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.waltz = new Sound(this._parent.BS_waltz);
} else {
this.createEmptyMovieClip('_waltz_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.waltz = new Sound(this.BS_waltz);
}
_global.Behaviors.Sound.waltz.loadSound(" http://www.langleyukes.com/LUE/MP3/Recordings/Classical_Ukuleles/sound_files/Danube_Waltz_clip.mp3",true);
}