My development continues and I have moved forward much to my surprise in Flash and JS/HTML.
I have a question for those that have more experience.
I have a web application that consists of members and I want them to be able to send a voice recording to one another. I developed a flash voice recorder that lets the user record a message, play it back, then attach it to the message form much like a email you can attach a file and it will be in the memory until the user hits 'send'. The adding of a voice recording to the message is optional.
My question is, I have the html form and in the lower corner of the form lies my flash recorder. What would be the best strategy so that I can:
Once the user presses send, the recorder checks to see if there was any recording.
If there was no recording, send the message via AJAX normally.
If there WAS a recording, send the message like before and also have flash attach the data with it.
I have been searching and I find online many flash uploaders, flash forms etc..
I guess what I want is that the message be HTML for those users that don't want to send a recording or cannot for some reason use flash. In otherwords the message would be a combination of data from an HTML form and data (if any) from the flash in one shot, or the best way.
But if the recorder is active then have it attached to the POST along with the message in a smooth way.
I imagine that this involves some logic and sending JS calls to the Flash then back but I am not sure of how would be the best approach to this. Can someone guide me or if you know of any good tutorials.