QR Zbar is a native extension that allows an application to read QR and bar codes on Android and iOS. Before start scanning the extension can be configured and tweaked, so it’s possible to specify the size and colors of the target area for bar code scanning, for instance.

After the extension is ready, the developer can programmatically launch the scanning UI, which can remain active until the user stops using it or it can auto-close after the scan process. When the target is successfully scanned, an event is fired containing the read data.

Sample

var s:Scanner = new Scanner();
s.resetConfig();

// Only QR Code By default  
s.addEventListener(ScannerEvent.SCAN,onScan);

// Multiple scans, until user presses back button to come back to the app.
s.startPreview("rear"); 
s.attachScannerToPreview();

private function onScan(event:ScannerEvent):void {
     trace("Scan Event " + event.data);
     s.stopPreview();
}
Air Native Extension, Android, iOS. URL.