0 Replies Latest reply on Apr 15, 2013 2:30 PM by Gloria_Elena

    I need you help with ios

    Gloria_Elena

      Well first my english dont is very good!!! , im start programming in flash builer, in my application im use the camera and save de photos in the camera roll , but in android works good , but in IOS dont work dont save the photos in the camera roll , just launch , take the photo but dont save.

       

      This is the code:

       

      fx:Script>

                          <![CDATA[

       

                                    import mx.events.FlexEvent;

                                    import mx.graphics.codec.JPEGEncoder;

                                    private var camera:CameraUI;

                                    private var loader:Loader;

       

       

                                    protected function button1_clickHandler(event:MouseEvent):void

                                    {

                                              if (CameraUI.isSupported)

                                              {

       

                                                        trace("camara soportada");

       

                                                        var myCam:CameraUI = new CameraUI();

       

                                                        myCam.launch(MediaType.IMAGE);

       

                                              }

       

                                              else

                                              {

                                                        trace("camara no soportada");

                                                        Error.text = "Camara no soportada en este dispositivo";

                                              }

                                    }

       

       

       

                          ]]>

                </fx:Script>