Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Auto action at end of sound file

7:01 am on Sep 9, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 30, 2003
votes: 0


I have a game with > 200 sound files. These are vocal lines to which I match generic lip synching.

I need a automatic system by which an lip synch animation stops when a sound file reached its end.

What system would be best here given it has to apply to 200 lines?


5:16 pm on Sept 9, 2004 (gmt 0)

Full Member

10+ Year Member

joined:Feb 4, 2004
votes: 0

Supposing the sync animation movie clip is called syncAnimation, I would make a 3 frame movieclip and name it syncControl. The first frame would have the stop() action, second frame is empty, and the third frame would have ( in pseudo-code )

if ( the sound is playing )
//keep looping the syncControl
//the sound has stopped, so stop the animation
//i'm assuming frame 1 of the syncAnimation
//has the mouth closed.
//reset the syncControl

now on the frame in your timeline where the audio starts, you would need to add:

I'm sure there is a more elegant way to do this but I haven't had enough coffee yet.

8:51 pm on Sept 13, 2004 (gmt 0)

New User

10+ Year Member

joined:June 28, 2003
votes: 0

Don't forget there's onSoundComplete which maybe of help...
10:05 pm on Sept 13, 2004 (gmt 0)

Full Member

10+ Year Member

joined:Feb 4, 2004
votes: 0

good call Caimin, I knew there had to be an easier way. I should probable do more work with dynamic audio and drink more coffee.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members