Hi Tom,
I used the code for web camera below and the latest version of flash player
- 10.3.183.7:
private function showCameraLists():void
{
var cam:Camera = Camera.getCamera();
if(cam == null){
ExternalInterface.call('alert', "No Web Camera found!");
return;
}
var camNames:Array = Camera.names;
var index:Number = 0;
for ( var i : int = 0 ; i < camNames.length ; i++ ) {
if (camNames[i] == "USB Video Class Video" ) {
index = i;
}
}
if(index > 0){
createCamera(index.toString());
}else{
createCamera();
}
}
private function createCamera( cameraIndex:String=null ):void
{
webcam = Camera.getCamera( cameraIndex );
webcam.setMode( cameraWidth, cameraHeight, cameraFrameRate, true
);
webcam.setMotionLevel(70, 2000);
webcam.addEventListener( ActivityEvent.ACTIVITY,
onCameraActivity, false, 0, true );
webcam.addEventListener( StatusEvent.STATUS, onCameraStatus );
videoMatrix = new Matrix();
videoMatrix.a = -1; // scale(-1, 0); // flip horizontal assuming
that scaleX is currently 1
videoMatrix.tx = this.cameraWidth;
video = new Video( webcam.width, webcam.height );
video.attachCamera( webcam );
}
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah
||<http://www.manasamarthyadata.com/>
*Think of the environment before printing this email
__________________________________________________________________________
*
On Mon, Sep 19, 2011 at 12:16 PM, Dave Watts <[email protected]> wrote:
> > I recently developing an AR apps and my clients also face the same
> problem.
> > I asked them to update their flash player to 10.3.183.7
> >
> > Check MAC flash player version by visiting the page -
> > http://www.adobe.com/software/flash/about/
>
> I'm using the latest FP version, and Tom's link didn't work for me.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
>
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or onsite.
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders