Audio does not play in movieclip on first click. It plays on second click.
Hi Everybody,
I was editing an animate file I made in 2018. When I exported it, I found that audio does not play when I click a button, although the animation does play. When I click it the second time, the audio plays.
I have 6 movieclips on the stage and it is the same with each of them. When I export the movie and click on any of them, the animation will play but not the sound. When I click on any of them after that, or I click on the first one a second time, the sound plays.
When I just play the 2018 html file I can click on any of the movie clips and the sound plays with the animation.
The code in each movieclip is
this.ed4.addEventListener("click", fl_ClickToGoToAndPlayFromFrame_31.bind(this));
function fl_ClickToGoToAndPlayFromFrame_31()
{
this.gotoAndPlay(1);
exportRoot.stopped_.gotoAndStop(0);
exportRoot.missed_.gotoAndStop(0);
exportRoot.walked_.gotoAndStop(0);
exportRoot.wished_.gotoAndStop(0);
exportRoot.punched_.gotoAndStop(0);
}
I have the audio on the 3rd frame of the movie clip.
Does anyone have any idea what might be happening here?
Thank you in advance!
Kevin
