Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to get class FrontCamera.as in Flash Professional CC for Android

Explorer ,
Nov 25, 2015 Nov 25, 2015

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

TOPICS
ActionScript
483
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 25, 2015 Nov 25, 2015

import flash.media.CameraPosition;

Translate
Community Expert ,
Nov 25, 2015 Nov 25, 2015

import flash.media.CameraPosition;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 26, 2015 Nov 26, 2015

Thank you!!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 26, 2015 Nov 26, 2015
LATEST

you're welcome.

(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines