1 Reply Latest reply on Jan 19, 2013 8:42 AM by Don Kerr

    Cantrell cross-platform CameraUI

    Don Kerr

      Christian has a great blog post

      http://blogs.adobe.com/cantrell/archives/2011/02/how-to-use-cameraui-in-a-cross-platform-w ay.html


      In this function ...

      private function onMediaPromiseLoaded(e:Event):void
          var mpLoaderInfo:LoaderInfo = e.target as LoaderInfo;
          mpLoaderInfo.removeEventListener(Event.COMPLETE, onMediaPromiseLoaded);
          mpLoaderInfo.loader.removeEventListener(IOErrorEvent.IO_ERROR, onMediaPromiseLoadError);
          this.imageDisplay.source = mpLoaderInfo.loader;


      I need to be able to store the image in a ByteArray, but there doesn't appear to be a property that actually contains the data.


      mpLoader.bytes is always null. 


      Any ideas?