how to catch webcam allow/deny

I am making a webcam chat application and want to catch if the user does not allow flash player to use his camera to deny him from logging in. How can I catch this?

thanks in advance
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This page lists exactly how to do so. :)

That is the page for the Camera in the langauge reference. It contains all the properties and methods of the camera, and is REALLY handy to have around.

And here is some further reading on the camera class.

Do you have any more questions regarding the Camera?

Good luck with your programming,

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
But basically, the attached code does it simply.

But I would still REALLY recommend reading up on the rest of at least the first link with the full example.
var cam:Camera = Camera.getCamera();
if (cam == null)
    trace("Camera not available or blocked. Get outta here!");

Open in new window

thegrooverAuthor Commented:
well, your code is not the one I was looking for, because it only shows if your camera is accessible, not that if you clicked allow/deny.
But I was able to find what I needed on the link you provided, it is the camera.muted property.
thank you :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Flex

From novice to tech pro — start learning today.