Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7970433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:23:54+00:00 2026-06-04T07:23:54+00:00

I have developed simple camera application for Android mobile using flex 4. The problem

  • 0

I have developed simple camera application for Android mobile using flex 4. The problem is , when I run that application it uses the rear camera. It’s not using the front camera. How can I change the camera. I need to use front side camera for this application , kindly help me .

var camera:Camera = Camera.getCamera(cameraIndex.toString());
if (camera)
{
    var ui: UIComponent = new UIComponent();
    var localVideoDisplay: Video = new Video(180, 135);
    localVideoDisplay.attachCamera(camera);
    ui.addChild(localVideoDisplay);                     
    cameraGroup.addChild(ui);
}

this is the code I have used in my application.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T07:23:55+00:00Added an answer on June 4, 2026 at 7:23 am

    try

    function getCamera( position:String ):Camera
    {
        var camera:Camera;
        var cameraCount:uint = Camera.names.length;
        for ( var i:uint = 0; i < cameraCount; ++i )
        {
            camera = Camera.getCamera( String(i) );
            if ( camera.position == position ) 
                return camera;
        }
        return Camera.getCamera();
    }
    

    Use getCamera(CameraPosition.FRONT)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed an simple android application that says hello. Now i have transferred
I have developed a simple application that uses APNS. The app runs fine and
I have developed one simple application in phone-gap-android using eclipse and android SDK. As
I have developed a simple C# Winforms application that loads MS-Word 2007 documents via
I have developed a simple application such as insertion, updation in jsp,servlet that is
I have developed a simple application in GWT. After that, I generate war file
I have developed a very simple app that uses a custom adapter for a
I have developed a simple django application using sqlite3. At first, I wanted to
I have developed and Simple android application in Java and also uploaded it on
I have developed a simple location aware iPhone application which is functionally working very

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.