Forum Moderators: open
if ( the sound is playing )
{
//keep looping the syncControl
gotoandplay(2);
}else{
//the sound has stopped, so stop the animation
//i'm assuming frame 1 of the syncAnimation
//has the mouth closed.
syncAnimation.gotoandstop(1);
//reset the syncControl
gotoandstop(1);
}
now on the frame in your timeline where the audio starts, you would need to add:
syncAnimation.play();
syncControl.gotoandplay(2);
I'm sure there is a more elegant way to do this but I haven't had enough coffee yet.
jezra