Copy link to clipboard
Copied
Hello, I have the following code:
import flash.media.Camera;
var numCameras:uint = (Camera.isSupported) ? Camera.names.length : 0;
for (var i:uint = 0; i < numCameras; i++)
{
cam1 = Camera.getCamera(String(i));
if (cam1 && cam1.position == CameraPosition.FRONT)
{
break;
}
}
And I get the following error message:
1120: Access to CameraPosition proeprty is not defined
Where can I find this class in Flash Professional CC?
Best regards
import flash.media.CameraPosition;
Copy link to clipboard
Copied
import flash.media.CameraPosition;
Copy link to clipboard
Copied
Thank you!!
Copy link to clipboard
Copied
you're welcome.
(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now