Need a flash component AS2 or AS3 that generates and receives DTMF tones. It should have 3 actionscript methods:
1. GenerateDTMF(tones:String, msToneDuration:Number, msSpaceDuration:Number) --- which accepts a string of DTMF compliant alphanumeric characters and plays the corresponding sounds out of the speaker. msToneDuration is duration of tone in milliseconds. msSpaceDuration is the duration between tones in milliseconds.
2. CancelDTMFQueue() --- which cancels any pending tones that have not played yet.
3. DTMFToneReceived(value:String, confidence:Number) --- which is called each time a tone is heard by the microphone.
The flash component should be included in a simple HTML demo page. If a tone is generated and heard by the microphone then DTMFToneReceived is called, even if it was generated by the same component. If it is not heard by the microphone then it is not called.