Easy to embed, webcam based barcode scanner in flash.
Lately I have received quite a lot of emails about my barcode scanner. Most of these emails are by people requesting a ready to use version of the scanner. Apparently flash components are not so easy to use as I want them to be.
Therefore for anyone who wants to just put a working scanner on there website I suggest just using the following code:
As you might have noticed it loads the flash file from barcodepedia. The reason for this is that barcodepedia’s scanner will always be updated, such you do not have to update your files manually when a new version is released.
To controle the scanner it supports the following flashvars
- baseUrl - When a barcode is recognized the url specified here will be requested with the barcode attached.
- e1 - Error message given to the user when unsupported version of flash is found.
- e2 - Error message given to the user when no webcam is found.
- e2 - Error message given to the user when user disallows access to the webcam.
The below example and the above code both does a google search for the barcode, when one is scanned.
Example scanner
on February 12th, 2007 at 10:42 pm
thanks a lot for sharing this. I have often wanted something like this but haven’t really known where to start! Thank you very much.
on February 16th, 2007 at 2:58 pm
spooky, I just wondered about something like this in the last few days! Thanks very much for sharing :-)
on June 11th, 2007 at 2:07 pm
Hey, I get the idea, but how does it work?
on October 3rd, 2007 at 1:38 am
Hi, i tested it with Flash Lite 2.1 ( http://labs.adobe.com/wiki/index.php/Flash_Lite_2.1_Authoring)
on my Windows Mobile Smartphone with built in Webcam but i got a error that Flash 8 Content is not supported , and the code may be corrupted.
Using that Flash on my mobile would be very nice. ;-)
regards Oliver