Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function videoDisplay_creationComplete():void
- {
- //titleWindow = PopUpManager.createPopUp(this, Dialog, true) as TitleWindow;
- //PopUpManager.centerPopUp(titleWindow);
- var cam:Camera = Camera.getCamera();
- if (cam != null)
- {
- cam.addEventListener(StatusEvent.STATUS, statusHandler);
- }
- }
- function statusHandler(event:StatusEvent):void
- {
- if(event.code == "Camera.Unmuted") // "Camera.Muted" or "Camera.Unmuted"
- trace("OK");// good to go
- else
- trace("NOK");// permission denied
- titleWindow = PopUpManager.createPopUp(this, Dialog2, true) as TitleWindow;
- PopUpManager.centerPopUp(titleWindow);
- }
- Security.showSettings(SecurityPanel.PRIVACY);
Advertisement
Add Comment
Please, Sign In to add comment