3 Replies Latest reply on Dec 16, 2010 11:29 AM by bercianosnico

    Connect a Digital Camera to Adobe flex and take a picture?

    bercianosnico

      Hello,

       

      I'm trying to connect my digital camera to adobe flex builder and take a picture. Do you know if that is possible and if it is how?

       

      Thanks!

        • 1. Re: Connect a Digital Camera to Adobe flex and take a picture?
          saisri2k2 Level 4

          If your digi cam can act as a web cam then we can do.

          • 2. Re: Connect a Digital Camera to Adobe flex and take a picture?
            chriswyl

            camera ON

             

            public function camON () : void

            {

                 var camera:Camera = Camera.getCamera();

             

                            camera.setMode(640,480, 15,true);
                            if (camera) {                   
                                videoDisplay.attachCamera(camera);         
                               
                            }

                 }

             

             

             

             

            _______

            and below take shoot

             

             

            public function shootOK () : void
                        {
                            var bmd:BitmapData = new BitmapData(videoDisplay.width, videoDisplay.height)
                            bmd.draw(videoDisplay);
                            var pic = new Bitmap(bmd);
                        }

             


            _______

            and mxml component

             

            <mx:VideoDisplay  id="videoDisplay" width="500" height="375" dropShadowVisible="false" horizontalCenter="0" top="10"/>

            • 3. Re: Connect a Digital Camera to Adobe flex and take a picture?
              bercianosnico Level 1

              Thanks for everything, but the thing is that if i use this, i would get a still image, i want to connect to the digital camera and take a picture from the camera.

               

              Do you get the idea? I could connect the camera as a webcam but the quality of the picture is not going to be the same.

               

              Thanks!