How to get class FrontCamera.as in Flash Professional CC for Android
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