PDA

View Full Version : Camera.get() error


luwi
08-19-2005, 07:33 PM
Hello,

I have an application uses webcam. But always, when I use Camera.get() command and my webcam is not connected to the computer, flash fails with message "Macromedia Flash Player 7.0 r19 has encountered a problem and needs to close. We are sorry for the inconvenience." And does not matter, if I run it from browser or just run swf.

Do any of you know, where could be a problem?

Many thanks
Ludvik

madgett
08-21-2005, 07:22 AM
What OS are you using?

luwi
08-21-2005, 10:09 PM
Hello,

Windows XP. And just for info, I use Flash MX 2004, IE 6.0.

Many thanks,
Ludvik

jaci
09-14-2005, 07:30 AM
Hi,

While using the webcamera...Its better to check whether the camera exists or not and then proceed with the rest of code..else it will give the error..

mycam = Camera.get();//get the default camera
if (mycam == null)
{
//cam doesnt exist
}
else
{
//proceed with the program...
}

Thanks..

rommel
09-15-2005, 11:43 PM
Is it possible to run a webcam from inside a flash mc? Interesting. Anyway how is this done?