Flex and Java code for recording your webcam based on Red5 Media server.