Yes I thinking in this option one InstallEventHandler to know if there is playing a voice sample to make the mouth animation for intros or games, I read that Flash has a insruction for it and I see this in some Flash games.
I tried to use the OnSampleLoop like this:
InstallEventHandler({OnSampleLoop=p_Sound})
and curiosly it works but I read the problems to use this instruction and the instruction isn't perfect with long speeches.
Will be possible a "OnSamplePlaying" inside of InstallEventHandler? To make the mouth animations for example.
Thank you Andreas for your time.
One InstallEventHandler to make mouth animations
- Juan Carlos
- Posts: 891
- Joined: Mon Sep 06, 2010 1:02 pm
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: One InstallEventHandler to make mouth animations
Just use an interval function and IsSamplePlaying().
- Juan Carlos
- Posts: 891
- Joined: Mon Sep 06, 2010 1:02 pm
Re: One InstallEventHandler to make mouth animations
I try to use the interval function and the result isn't so good than using InstallEventHandler({OnSampleLoop=p_Sound}),
the mouth animation with interval is slow but with Install the animation is quickly and perfect, only someting short with long speeches.
the mouth animation with interval is slow but with Install the animation is quickly and perfect, only someting short with long speeches.