is there any sample on using array bitmapdata to record video from webcam and generate flash movieclip file? i want to record sound as well without using red5/flash streaming server
The video part may be possible at very low framerates, but you would have to port an FLV encoder into AS3, which is no trivial task. It would also be very memory intensive.
As for audio, there is simply no programatic access to raw microphone data from within the Flash player. If you want to record audio you must you a server like FMS or Red5.
I haven't seen any library out there can generate swf files form Flash in runtimeWhat you can do is to pass all the bitmapdata to backend, PHP for example. Then use PHP to generate a swf file with MING library or something similar.
For security reason, you cannot record sound from microphone.
For the video part, there is SimpleFlvWriter (for AIR).
For the sound part, Flash do not allow you to directly record a microphone input, BUT, there are some alternatives talked in getMicrophone().