So I've noticed that Facebook will automatically detect which Camera object to use on your computer. It seems on most if not all macs there are at least three (3) Camera objects always available. So, I've made a class that will automatically detect which webcam is active and running.
Feedback anyone? Download it here <http://blog.cataclysmicrewind.com/webcamdetection/> It's pretty simple to use: import com.crp.utils.WebcamDetection; import com.crp.events.WebcamEvent; var wd:WebcamDetection = new WebcamDetection(); wd.addEventListener (WebcamEvent.RESOLVE, onResolve); wd.begin(); function onResolve (e:WebcamEvent):void { trace(e.code); switch (e.code) { case "success": var myCamera:Camera = e.camera; break; case "noPermission": // the user denied permission break; case "noCameras": // no suitable camera's were found break; } } _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

