Hi,
I have a basic flash movie with a graphic that fades in to a
keyframe. At this point the movie stops and a sound plays through
actionscript coding (shown below). How do I set the movie to
continue once the sound clip has finished? At the moment the movie
continues once the audio starts playing.
stop();
//Play Internal Sound Behavior
if(_global.Behaviors == null)_global.Behaviors = {};
if(_global.Behaviors.Sound == null)_global.Behaviors.Sound =
{};
if(typeof this.createEmptyMovieClip == ‘undefined’){
this._parent.createEmptyMovieClip(‘BS_daddy’,new
Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000)
);
_global.Behaviors.Sound.daddy = new
Sound(this._parent.BS_daddy);
} else {
this.createEmptyMovieClip(‘_daddy_’,new
Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000)
);
_global.Behaviors.Sound.daddy = new Sound(this.BS_daddy);
}
_global.Behaviors.Sound.daddy.attachSound(“daddy”);
if (true) {
_global.Behaviors.Sound.daddy.start(0,1);
}
//End Behavior
play();
Thanks|||
I tried placing;
Sound.daddy.onSoundComplete = function() {
.play();
}
Afterwards but the following error is thrown up when I play
back “There is no property with the name ‘daddy’.” Any
ideas???
Related posts:
- How to play a sound from android
- HELP! How to play a sound from android SD card
- How to Make Movie Clips Play Individually?
- How to Make Movie Clips Play Individually?
- Autoplaying sound file
Related posts brought to you by Yet Another Related Posts Plugin.