You need to use the permissions api with AIR 24 and above. Check the sample code below- package { import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.PermissionEvent; import flash.media.Camera; import flash.media.Video; import flash.permissions.PermissionStatus; public class codeSnippet extends Sprite { private var video:Video; private var cam:Camera; public function codeSnippet() { super (); stage.align = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE; if (Camera.isSupported) { cam = Camera.getCamera(); if (Camera.permissionStatus != PermissionStatus.GRANTED) { cam.addEventListener(PermissionEvent.PERMISSION_STATUS, function (e:PermissionEvent): void { if (e.status == PermissionStatus.GRANTED) { connectCamera(); } else { // permission denied } }); try { cam.requestPermission(); } catch (e:Error) { // another request is in progress } } else { connectCamera(); } } } private function connectCamera(): void { video = new Video( 640 , 480 ); video.attachCamera(cam); addChild(video); } } } For more details check the AIR 24 release notes @Release Notes Flash Player 24 AIR 24 Thanks, Krati | Adobe AIR Engineering
... View more