Major problem with AIR iOS Camera

Wen I open the camera dialog and then either hit cancel or take a pic and return to my app.... my entire stage zooms.  It looks like its zooming to show any off stage content. If I then rotate the app 180 degrees it readjusts to be normal again. My app is a landscape app.
If I set the app to be EXACT_FIT the problem happens and then auto corrects itself. Still looks really bad for the second that it happens though.
The camera portion is crucial to my app .. so hoping there is a known fix for this.
Any help appreciated as always!

I just need to use the camera on iOS and Android to take a picture and have that picture as bitmap data on the stage. Pretty simple.  App is in landscape mode.
Hmmm .. I've never used the Flash Camera class
I'm using this
  function initCamera(evt:Event):void{
  endTouchX = mouseX;
  endTouchY = mouseY;
  if (startTouchX - endTouchX < 25 && startTouchX - endTouchX >-25 && startTouchY - endTouchY < 25 && startTouchY - endTouchY >-25) {
  takePhotoBTN.alpha = 1;
  trace("Starting Camera");
                        if( CameraUI.isSupported )
                                cameraUI.addEventListener(MediaEvent.COMPLETE, imageSelected);
                                cameraUI.addEventListener(Event.CANCEL, browseCancelled);
                                cameraUI.addEventListener(ErrorEvent.ERROR, mediaError);
                                cameraUI.launch(MediaType.IMAGE);
                        else
                               trace("This device does not support Camera functions.");

Similar Messages

  • I have a major problems with adobe air.

    i have a major problems with adobe air. day before yeasterday it work. now it tell me that it is musconfigure. so i have tried a download it again. but still not working.

    You really need to explain what you are doing, and what your "major problems" are.  We do not even know if you mean the AIR runtime, or AIR SDK?  Nor your operating system.

  • Air iOS Camera Uploading Photo

    Currently, I am encountering problem with Adobe Flash CS6 tutorial at http://www.fizixstudios.com/labs/do/view/id/air-ios-camera-and-uploading-photos. After creating and naming the instances & type the coding in ActionScript file, I can't seems to execute and make it work and looking forward to hear from you all soon.

    Currently, I am encountering problem with Adobe Flash CS6 tutorial at http://www.fizixstudios.com/labs/do/view/id/air-ios-camera-and-uploading-photos. After creating and naming the instances & type the coding in ActionScript file, I can't seems to execute and make it work and looking forward to hear from you all soon.

  • Air iOS Camera Upload

    Currently, I am encountering problem with Adobe Flash CS6 tutorial at http://www.fizixstudios.com/labs/do/view/id/air-ios-camera-and-uploading-photos. After creating and naming the instances & type the coding in ActionScript file, I can't seems to execute and make it work and looking forward to hear from you all soon.

    Thanks
    Attached is the screenshot to my button instance name and Below is the code
    package 
      import flash.display.MovieClip;
      import flash.events.MouseEvent;
      import flash.events.TouchEvent;
      import flash.ui.Multitouch;
        import flash.ui.MultitouchInputMode;
      import flash.media.Camera;
      import flash.media.CameraUI;
      import flash.media.CameraRoll;
      import flash.media.MediaPromise;
        import flash.media.MediaType;
      import flash.events.MediaEvent;
      import flash.events.Event;
      import flash.events.ErrorEvent;
      import flash.utils.IDataInput;
      import flash.events.IEventDispatcher;
      import flash.events.IOErrorEvent;
      import flash.utils.ByteArray;
      import flash.filesystem.File;
      import flash.filesystem.FileMode;
      import flash.filesystem.FileStream;
      import flash.errors.EOFError;
      import flash.net.URLRequest;
      import flash.net.URLVariables;
      import flash.net.URLRequestMethod;
      public class CameraTest extends MovieClip
      // Define properties
      var cameraRoll:CameraRoll = new CameraRoll(); // For Camera Roll
      var cameraUI:CameraUI = new CameraUI(); // For Taking a Photo
      var dataSource:IDataInput; // Data Source
      var tempDir; // Our temporary directory
      public function CameraTest()
      Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
      // Start the home screen
      startHomeScreen();
      // =================================================================================
      // startHomeScreen
      // =================================================================================
      public function startHomeScreen()
      trace("Main Screen Initialized");
      // Add main screen event listeners
      if(Multitouch.supportsGestureEvents)
      mainScreen.startCamera.addEventListener(TouchEvent.TOUCH_TAP, initCamera);
      mainScreen.startCameraRoll.addEventListener(TouchEvent.TOUCH_TAP, initCameraRoll);
      else
      mainScreen.startCamera.addEventListener(MouseEvent.CLICK, initCamera);
      mainScreen.startCameraRoll.addEventListener(MouseEvent.CLICK, initCameraRoll);
      // =================================================================================
      // initCamera
      // =================================================================================
      private function initCamera(evt:Event):void
      trace("Starting Camera");
      if( CameraUI.isSupported )
      cameraUI.addEventListener(MediaEvent.COMPLETE, imageSelected);
      cameraUI.addEventListener(Event.CANCEL, browseCancelled);
      cameraUI.addEventListener(ErrorEvent.ERROR, mediaError);
      cameraUI.launch(MediaType.IMAGE);
      else
      mainScreen.feedbackText.text = "This device does not support Camera functions.";
      // =================================================================================
      // initCameraRoll
      // =================================================================================
      private function initCameraRoll(evt:Event):void
      trace("Opening Camera Roll");
      if(CameraRoll.supportsBrowseForImage)
      mainScreen.feedbackText.text = "Opening Camera Roll.";
      // Add event listeners for camera roll events
      cameraRoll.addEventListener(MediaEvent.SELECT, imageSelected);
      cameraRoll.addEventListener(Event.CANCEL, browseCancelled);
      cameraRoll.addEventListener(ErrorEvent.ERROR, mediaError);
      // Open up the camera roll
      cameraRoll.browseForImage();
      else
      mainScreen.feedbackText.text = "This device does not support CameraRoll functions.";
      // =================================================================================
      // imageSelected
      // =================================================================================
      private function imageSelected(evt:MediaEvent):void
      mainScreen.feedbackText.text = "Image Selected";
      // Create a new imagePromise
      var imagePromise:MediaPromise = evt.data;
      // Open our data source
      dataSource = imagePromise.open();
      if(imagePromise.isAsync )
      mainScreen.feedbackText.text += "Asynchronous Mode Media Promise.";
      var eventSource:IEventDispatcher = dataSource as IEventDispatcher;
      eventSource.addEventListener( Event.COMPLETE, onMediaLoaded );
      else
      mainScreen.feedbackText.text += "Synchronous Mode Media Promise.";
      readMediaData();
      // =================================================================================
      // browseCancelled
      // =================================================================================
      private function browseCancelled(event:Event):void
      mainScreen.feedbackText.text = "Browse CameraRoll Cancelled";
      // =================================================================================
      // mediaError
      // =================================================================================
      private function mediaError(event:Event):void
      mainScreen.feedbackText.text = "There was an error";
      // =================================================================================
      // onMediaLoaded
      // =================================================================================
      function onMediaLoaded( event:Event ):void
      mainScreen.feedbackText.text += "Image Loaded.";
      readMediaData();
      // =================================================================================
      // readMediaData
      // =================================================================================
      function readMediaData():void
      mainScreen.feedbackText.text += "Reading Image Data.";
      var imageBytes:ByteArray = new ByteArray();
      dataSource.readBytes( imageBytes );
      tempDir = File.createTempDirectory();
      // Set the userURL
      var serverURL:String = "http://www.example.com/upload.php";
      // Get the date and create an image name
      var now:Date = new Date();
      var filename:String = "IMG" + now.fullYear + now.month + now.day + now.hours + now.minutes + now.seconds;
      // Create the temp file
      var temp:File = tempDir.resolvePath(filename);
      // Create a new FileStream
      var stream:FileStream = new FileStream();
      stream.open(temp, FileMode.WRITE);
      stream.writeBytes(imageBytes);
      stream.close();
      // Add event listeners for progress
      temp.addEventListener(Event.COMPLETE, uploadComplete);
      temp.addEventListener(IOErrorEvent.IO_ERROR, ioError);
      // Try to upload the file
      try
      mainScreen.feedbackText.text += "Uploading File";
      //temp.upload(new URLRequest(serverURL));
      // We need to use URLVariables
      var params:URLVariables = new URLVariables();
      // Set the parameters that we will be posting alongside the image
      params.userid = "1234567";
      // Create a new URLRequest
      var request:URLRequest = new URLRequest(serverURL);
      // Set the request method to POST (as opposed to GET)
      request.method = URLRequestMethod.POST;
      // Put our parameters into request.data
      request.data = params;
      // Perform the upload
      temp.upload(request);
      catch( e:Error )
      trace(e);
      mainScreen.feedbackText.text += "Error Uploading File: " + e;
      removeTempDir();
      // =================================================================================
      // removeTempDir
      // =================================================================================
      function removeTempDir():void
      tempDir.deleteDirectory(true);
      tempDir = null;
      // ==================================================================================
      // uploadComplete()
      // ==================================================================================
      function uploadComplete(event:Event):void
      mainScreen.feedbackText.text += "Upload Complete";
      // ==================================================================================
      // ioError()
      // ==================================================================================
      function ioError(event:Event):void
      mainScreen.feedbackText.text += "Unable to process photo";

  • Anyone else having major problems with Safari 5.1 on Snow Leopard?

    is anyone else having major problems with Safari 5.1 on Snow Leopard?
    - address bar and search box are not resizing with browser window. the address bar and seach box set their size to the window when Safari is launched and remain that size.
    - anytime i try to customize toolbar items disappear and i have to restart Safari to get them to appear.
    - some 3rd party icons just remove themselves from the toolbar after a period of time
    - when i drag a page from the tab bar to create it's own browser window the window disappears but is listed in the windows menu bar. when i select that window from the menu bar the window appears but i can't click on anything.
    I've repaired permissions numerous times, reinstalled safari numerous times and restarted my machine numerous times and the issues all remain. i've never had any issues with Safari until now and 5.1 is looking like a huge mess.
    besides the bugs above, has anyone had any luck with 1password working with Safari 5.1?

    ok, i narrowed most of my issues down to Web Snapper and Videobox by TastyApps. Removed both of those and now everything works better.
    I went out to lunch and came back an hour later and magically ALL of my previous toolbar icons that were added to my previous version of Safari appeared. Very strange.
    as for 1password, it wasn't working at all before when i posted. everytime i tried installing the extension via the app my, Safari would open a window and hang (never load). I just tried it again and it seems to now be working.

  • My iPod touch 5G has a problem with its back camera, there's a dark spot on picture quality and won't focus, it will only focus on things 5-7 inches away from the iPod. Could I go to apple and see if they can repair it or give me a new one?

    My iPod touch 5G has a problem with its back camera, there's a dark spot on picture quality and won't focus, it will only focus on things 5-7 inches away from the iPod. Could I go to apple and see if they can repair it or give me a new one? Someone help please.

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          
    If the iPod is defective and not abused Apple will exchange your iPod for a refurbished one at no cost

  • I am experiencing some major problems with my MacBook Pro. I have had some issues with it turning on/off at random times, but today, when starting, I get the grey start-up screen and a recovery bar. After filling in approx 1/4 of the way, the machine dies

    I am experiencing some major problems with my MacBook Pro. I have had some issues with it turning on/off at random times, but today, when starting, I get the grey start-up screen and a recovery bar. After filling in approx 1/4 of the way, the machine dies. After starting it in recovery mode, it will not allow me to download OS X Mavericks- it says the disk is locked. Any ideas? I do not have a back-up and do not want to erase everything before I have explored my options. Help?

    try forcing internet recover, hold 3 keys - command, option, r - you should see a spinning globe
    most people will tell you to do both pram and smc resets (google) and if you still have issues, either clean install (easy) or troubleshoot (hard)

  • I have a problem with my 4s camera which has come up recently. Everytime I take a picture and look it up via the 'Photos' app, it shows as blank. But when I click on edit on the blank picture, it comes up and I am able to save it back on my photo album.

    I have a problem with my 4s camera which has come up recently. Everytime I take a picture and look it up via the 'Photos' app, it shows as blank. But when I click on edit on the blank picture, it comes up and I am able to save it back on my photo album as a proper image. Besides, I have also experiences the camera working a bit wiered (slow and often blanks out the moment I am ready to take a photo). Any help on this pls?

    Hi Noob Søren
    There are a few things that are confusing in your question.
    As far as I know, you dont have to install Time Machine on this OS as it is already installed for you. You only need to connect a hard drive to your computer via firewire or usb, click on the Time Machine icon, Open Time Machine Preference in the drop down menu and select a disk: your connected hard drive.
    You can of course reformat this connected device, partition it into a few volumes to organise data if you so wish.
    I find it strange that your mac's hard drive is divided into two volumes... perhaps this was created through bootcamp?
    You can access the configuration of your hd through Applications/Utilities/Disk Utilities.
    Clicking on one of the icons on the right hand panel will bring the details of the contents of your hardDrive and volumes. From there you can decide to erase a partition, reformat etc....
    If your hd contains more than one volume, and one of them is empty, you could decide to remove it. Back up all your important data before doing so.
    Hope this helps
    WN

  • With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    This isn't an issue. Notice the screen prior to the one that shows usage has an iCloud section and a Manage Storage button. For this button to activate ios needs to download a few kb from icloud. Switching back to this screen forces ios to download those few kb.

  • 10.9.3 = major problem with fast user switching

    I've found a major problem with the 10.9.3 update with my 27" iMac, you probably won't see it if your on a laptop. I did all the updates in past few days i.e., 10.9.3 combo update, iTunes 11.2.1.
    Afterward I noticed a bug when Fast User Switching i.e. FUS. I have 5 accounts but the bug can be replicated with only 2.
    I login to userA  have some windows open but you can just open a Finder window. Now make the window at least half the with of the screen and move it to the right side of the screen. Then login in to userB and setup the windows the same way as userA. Now FUS to userA and then back to userB. You will notice that the Finder window has been moved to the upper left corner of the screen. This problem happened's to all user accounts you login to except the first account you logged into.
    Since I didn't know what update caused the problem I had to use Time Machine to revert to my last version of 10.9.2. I then double checked the for the bug and sure enough everything was working fine. I now was going to install one update at a time and to see which one was causing the bug. So I installed 10.9.3 first and found the bug immediately.
    I now know what's happening. When the switch occurs the screen is resized to about the equivalent of a 13" MBP. At this point the windows that fall some ware outside that size get moved to the upper left corner and resized. Then the screen resizes to normal but it's too late, all the window have moved and been resized to fit the 13" screen size.
    You can reproduce this effect by going to System Preferences and selecting Display and then select the Scaled radio button. No select the smallest size, say, 1280 x 720. Now select the Best for display radio button again. You will now see all the windows you have open that were too big no moved and resized to the upper left corner. I know why the Mac moves the windows, it's so you don't have any windows stuck off screen.
    Now when I say 13" it could be some other size but it's about that size give or take.

    Yes, it's when you user Fast User Switching.
    Here's snapshot before the screen resized. Ignore the window in the lower right, I moved it from the upper left before taking the screen shot.
    I hate to say it but I'm glad I'm not the only one with this bug.

  • I am having major problems with my trackpad on my macbook pro.  I can no longer press down on the bottom left and right corners for it to click and follow my command.  Please can anyone help?

    I am having major problems with my track pad on my macbook pro.  Even though my settings haven't changed...my trackpad is no longer responding as it did before.  The left hand corner no longer clicks when I press it and my personal commands which I set up in preferences no longer seem to be workin.  Please help!

    Some websites have an internal mute or volume setting. If that's not the issue, see below.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data...
    and confirm. Close the window. Then select
               ▹ System Preferences… ▹ Flash Player ▹ Advanced ▹ Delete All...
    In the sheet that opens, check the box marked
              Delete All Site Data and Settings
    then click Delete Data. Close the preference pane.

  • I got my iphone 5 3 weeks ago and the battery life is very short. It drains out very fast. Does anyone know if it's a problem with the iOS or with my phone? Because I'm a bit concerned

    I recieved my iPhone 5 3 weeks ago and the battery life completely *****! After doing a few things and maybe using it for about 30 minutes the phone start overheating like crazy then the battery starts dropping very fast. Does anyone know if it's a problem with the iOS or with my phone? And is anyone else expierenceing these problems?

    It sounds like you have an app that is incorrectly continuously using data and power... from normal use the phone should NOT be getting that warm... only constant video playing via data like Netflix for example would result in that...
    I'd say that you should remove all apps in the recent app tray... tunr phone off... then once you power back on...
    Hold BOTH home and sleep wake buttons together until you see a white apple symbol... then release both buttons...
    This will ensure you have no apps running...
    I've experienced a hang up with mail while out and about that has resulted in this on my iPhone as well... Once I performed these steps it was fixed... it seemed like it got stuck and that's what caused the warm phone and battery drain...
    I notived that when it gets stuck (mail app that is) I will see the text connecting at the bottom and it never changes to "updated" like it should... this is my trigger that it's gotten stuck.
    Have not really figured out what causes mail app to get stuck yet...

  • I have got problem with my pc-cam 950 slim

    I have got problem with my pc-cam 950 slim. When I press the power button, the busy light goes on for seconds then it is shut down again so the camera doesn't work. Please help me with this problem. I tried to connect it to my PC put it didn't work either.
    Thank you for taking the time to help me.

    Originally Posted by Colin-CL
    Hi,
    Have you checked that you have put in brand new 2 x AAA batteries?
    Connecting it to your PC will allow you to use it as a mass storage device after installing the relevant operating system (Microsoft
    hi,
    Yes, I put two new batteries
    When connected to the computer nothing happens
    What can be done to reset it?
    By replaced capacitor problem can be solved?

  • Problem with the back camera in iPhone 4 (Black Shadow)

    Hi, I have a problem with the back camera. When turned on I can see a black shadow on one side and when I take the photo, appears in all the photos.
    I searched on the Internet to resolve this problem but I haven't been successful. A friend told me that maybe it is dirt that was introduced into the cover but I don't think It's true.
    The iPhone haven't dropped me for some quite time and don't crashing.
    Look here is a photo to show you how the black shadow looks like:
    Please, anyone know what the problem can be?

    It certainly does work.
    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • Problems with the front camera on iPhone 4

    Hey, guys. Just faced a problem with the front camera on my iPhone 4. So, when it's enabled this thing is on screen and all the pictures taken on it also has it:
    http://bit.ly/epZypp
    I've never dropped the phone, it isn't jailbroken or unlocked, it was bought in Britain but using in Russia, the firmware is 4.2.1.
    So, guys, can you help me?

    Have you tried resetting your phone by holding down the sleep/wake button and the home button at the same time until the phone restarts?

Maybe you are looking for

  • F-44 Clear Vendor Line Item

    Dear all, while posting transaction in F-44 i m getting error that is " the feild profit centre marked as balancing not filled with any value in line item 001" please provide the solution........ Regards, Manish

  • Suddenly, messages are not displaying correctly, how can I cure this?

    Messages have stopped displaying correctly, or, in some case, at all. The messages have downloaded OK. Even messages which were displaying correctly earlier, now don't. It occurred after 'finger' problems - I tried to type something into Firefox but

  • Regarding JSF Default action problem in IE

    Hi, I am using Jsf:Default action inside my submit button.In my form I have row of two buttons submit and reset.When I use my tab focus on reset button and when I am clicking enter submit default action is getting fired rather reset action.More over

  • Re deleting Play Movie button and associated links.

    Hi - thanks in advance for any help to a newbie. I have created an iDVD5 file from iMovie5. All went well with Chapter markers etc all coming through into my chosen theme. I started to customise the theme to my liking and noticed in the map area a fi

  • Paragraph Indents relative to spine

    Just like all things Adobe, InDesign has several half-features that aren't done yet. It's great that anchored objects and paragraph alignment can be set relative to spine, but what's missing is paragraph indents relative to spine. Instead of Left/Rig