Coder Social home page Coder Social logo

rontian / zxing-ane Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davikingcode/zxing-ane

0.0 1.0 0.0 56.66 MB

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

ActionScript 44.26% Java 0.08% C 0.87% Objective-C 54.78%

zxing-ane's Introduction

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!

zxing-ane's People

Contributors

alamboley avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.