actionscript 3 - iOS AIR app not getting user input after closing barcode reader ANE -
i have simple air app ios has text field along scan button. on pressing scan button app launches ane based on pdf417.mobi sdk uses ipad camera decode pdf417 barcodes. ane works fine , returns scans air.
on closing, closes camera , returns air can't interact air app @ all. no touches recognized whatsoever.
i've added enter_frame event trace continuously can check if app still alive after closing ane , keeps on tracing. it's user input doesn't work.
any ideas?
thanks.
i don't know pdf417.mobi sdk don't have use specific sdk theirs scan pdf417 @ all.
the zxing library on android supports that: https://github.com/zxing/zxing , ios supports natively: https://developer.apple.com/library/ios/technotes/tn2325/_index.html
for adobe air, support pdf417 plus other formats, may use ane of ours https://github.com/myflashlab/barcode-ane
and here's how should initialize , set read pdf417 reference:
import com.myflashlab.air.extensions.barcode.barcode; import com.myflashlab.air.extensions.barcode.barcodeevent; var _ex:barcode = new barcode(); _ex.addeventlistener(barcodeevent.result, onresult); _ex.addeventlistener(barcodeevent.cancel, oncancel); if (_ex.issupported()) { trace("please wait..."); // read selected barcode types. use array read 1 or more barcodes _ex.open([barcode.pdf417], file.applicationdirectory.resolvepath("com_doitflash_barcode_beep.mp3"), true, "cancel"); } else { trace("issupported: ", _ex.issupported()); } function oncancel(e:barcodeevent):void { trace("scan canceled") } function onresult(e:barcodeevent):void { trace("type is: ", e.param.type) trace("data is: ", e.param.data); }
Comments
Post a Comment