actionscript 3 - Webcam not recognized in Flash app -
i have problems in webcam recognition on flash app (written in actionscript 3).
i webcam source using:
camera.getcamera();
but on pc doesn't work. in particular, webcam gets led on getcamera() still returns false. how possible?
this should work:
package { import flash.display.sprite; import flash.media.camera; import flash.media.video; public class cameracontroller extends sprite { private var cam:camera = camera.getcamera(); private var vid:video = new video(); public function cameracontroller() { connectcamera(); } private function connectcamera():void { vid.attachcamera(cam); addchild(vid); } } }
you can read more using camera here: http://help.adobe.com/en_us/as2lcr/flash_10.0/help.html?content=00000867.html
Comments
Post a Comment