Making sound sync with my controls
Hello all,
This is one of my first flash movies so bear with my inexperience!
I've made a slide show with three pieces of audio that are set up to play with certain images. So you can imagine when the video is paused but the sound continues playing everything gets a bit messed up.
I have each audio on a different layer and none of them overlap, just fade in/out to one another.
EDIT: Almost forgot, so how can I get the audio to stop/play along with the rest of the flash file when play/pause is clicked on. And can I skip forword/backward 15frames in the audio clip as I am doing with the images?
Here is the AS3 for the back button (gtmf) and foreword button (gtpf)
stop();
mc_content.stop();
gtmf.addEventListener(MouseEvent.CLICK, gtmfs);
function gtmfs(event:MouseEvent) :void {
gotoAndStop(this.currentFrame-15)
mc_content.gotoAndStop(this.currentFrame-15)
pp.gotoAndStop(1);
}
gtpf.addEventListener(MouseEvent.CLICK, gtpfs);
function gtpfs(event:MouseEvent) :void {
gotoAndStop(this.currentFrame+15)
mc_content.gotoAndStop(this.currentFrame+15)
pp.gotoAndStop(1);
}
The play/pause button is a movieclip symbol (pp) with two frames, each with their own AS3.
Play button (gogo)
stop();
gogo.addEventListener(MouseEvent.CLICK, goplaying);
function goplaying(event:MouseEvent) :void {
MovieClip(root).play();
MovieClip(root).mc_content.play();
gotoAndStop(2);
}
Message was edited by: FTGLM