0 Replies Latest reply on Mar 7, 2011 11:30 AM by Exhomy

    can not initialize camera with air


      if i use Camera.names or Camera.getCamera() in my code Adobe air crash with those error message


      Process terminated unexpectedly.

      Launch command details:  "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.1.0\bin\adl.exe" -runtime "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.1.0\runtimes\air\win" "C:\Documents and Settings\Ben\Adobe Flash Builder 4\tester\bin-debug\tester-app.xml" "C:\Documents and Settings\Ben\Adobe Flash Builder 4\tester\bin-debug"

      some codes works in web application correctly. then i tryed with simple code like bellow and got some results


        import mx.controls.Alert;
        import mx.utils.ObjectUtil;
        private var cameras:Array;
        private function init():void {
         cameras = new Array(Camera.names);

      i'm using Flex sdk 4.1.0 and Air 2.5. I tryed to re download and install both of them like shown here but nothing changed. Can anyone please help me?


      sory for my English and best Regards