you are using [[AVAudioSession sharedInstance] setActive:NO error:nil] this is causing an exception from AVAudioSession "Deactivating an audio session that has running I/O. All I/O should be stopped or paused prior to deactivating the audio session." this is resulting in all audio/video session being closed . the problem gets solved if the you don't STOP the AVAudioSession. So please try without [[AVAudioSession sharedInstance] setActive:NO error:nil] Also AS3 provides Microphone class for recording you may also try that.
... View more