Skip navigation
Currently Being Moderated

Cantrell cross-platform CameraUI

Jan 19, 2013 8:15 AM

Christian has a great blog post

http://blogs.adobe.com/cantrell/archives/2011/02/how-to-use-cameraui-i n-a-cross-platform-way.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?

 

Thanks

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points