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:

  1. How to play a sound from android
  2. HELP! How to play a sound from android SD card
  3. How to Make Movie Clips Play Individually?
  4. How to Make Movie Clips Play Individually?
  5. Autoplaying sound file

Related posts brought to you by Yet Another Related Posts Plugin.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 free icons download Suffusion theme by Sayontan Sinha

Featuring Recent Posts WordPress Widget development by YD