Groups | Blog | Home
all groups > macromedia flash flashcom > april 2006 >

macromedia flash flashcom : Audio Record Limits


KelDev
4/10/2006 7:23:15 PM
I have created a simple audio record application that allows a user to record a
message after they click on "Record Now". Once the user clicks this button,
the button changes to "Stop Recording".

My question is this: How can I limit the record time for each recording? If
I want to limit each recording to have a maximum of say 30 seconds, what is the
correct way to tell the application to stop recording automatically. If this
limit is reached, then I would simply display a message to the user indicating
to them that they have exceeded the time limits of the recording.

Any help is greatly appreciated.

Doug
JayCharles
4/10/2006 8:14:20 PM
There's lots of ways to skin this particular cat, and I suppose the best way
would depend on the rest of the application.

I like to handle things like this on the client side. What I would do is set
up a timer on the client side, and start counting down from 30 seconds when the
record button is pressed. When the 30 seconds is up, your stop function can be
called.
AddThis Social Bookmark Button