Skip to content

a QR Code, bar code, image recognizer ANE for iOS & Android using ZXing library

Notifications You must be signed in to change notification settings

rontian/ZXing-ANE

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZXing-ANE

A QR Code, bar code, image recognizer ANE for iOS & Android using ZXing lib even on iOS. There is a default implementation for Web & Desktop player using pure AS3.

Be careful, this ANE doesn't only check for QRCode but for all formats supported by the ZXing library. A future version optimized should add argument for the format requested.

Note: This ANE doesn't manage camera stuff, it takes a bitmap data as an argument decodeFromBitmapData and return a ZXingEvent.SUCCESS with the URL found or a ZXingEvent.FAIL.

var zxing:ZXing = new ZXing();
zxing.addEventListener(ZXingEvent.FAIL, _zxingEvt);
zxing.addEventListener(ZXingEvent.SUCCESS, _zxingEvt);

zxing.decodeFromBitmapData(new qrCodeBitmap().bitmapData);

private function _zxingEvt(zxEvt:ZXingEvent):void {

	if (zxEvt.type == ZXingEvent.SUCCESS)
		trace(zxEvt.url);
	else
		trace("fail");
}

If you get this Error: The extension com.davikingcode.nativeExtensions.ZXing has either a namespace version or library.swf with a version that is incompatible with the applications namespace or root SWF. it means that you must compile your SWF with an upper swf version than your default. For example add -swf-version=25 to your command line.

If you get Error while loading initial content it means that you need to change your -swf-version too!

About

a QR Code, bar code, image recognizer ANE for iOS & Android using ZXing library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 54.7%
  • ActionScript 44.3%
  • Other 1.0%