Custom Search

Tuesday, March 17, 2009

Webcam in Flash

cam=Camera.get()
cam.setMode(640, 480, 24, true);

cam.onStatus=function(e)
{
if(e.code == "Camera.Unmuted")
{
//start the application
initialize()
}
else
{
System.showSettings(3)
}
}
//if there are no Cameras
if(cam == null)
{
System.showSettings(3)
}
else
{
output.attachVideo(cam)
}

No comments: