8 Replies Latest reply on Jan 23, 2013 8:28 AM by marciofermino

    Barcode Reading Using Flex

    GauravPatil

      Hi,

       

      We are developing a Web Application and we are also thinking of using Flex as a UI. In this the client of this application will be using Barcode Scanner to scan the product.

       

      So we want to know that is it possible for Flex to interact with the local(client side) hardware(Specifically Barcode Scanner) as it does with the Web Camera?

       

      What we are assuming is basically Flex UI is a Flash object and being a Flash object it must have access to hardware present on local machine.Please correct me if I am wrong.

       

      If possible please explain in detail. Any link/suggestion will be helpful.

       

      Regards,

      Gaurav

        • 1. Re: Barcode Reading Using Flex
          Matt Le Fevre Level 4

          possible to read barcodes using Flex?  yes,

           

          here's an example using a Webcam for the reader

           

          http://www.renaun.com/flex2/BarcodeReader/BarcodeReader.html

           

           

          direct interfacing with the scanning hardware......that's the tricky part, unsure if that's possible

          1 person found this helpful
          • 2. Re: Barcode Reading Using Flex
            JeffryHouser Level 4

            Bar code readers work just like a keyboard.  When you scan the information, it goes into the program that is currently open.  That could be a Flex application if you have a TextInput selected.  It could be a text editor, or Microsoft Word, or any other program.

             

            However, Flex cannot get direct access to the device.  I doubt anything browser based can.

             

            You are correct that Flex will hvae access to anything to the Flash Player does.  But, the Flash Player's access to the client machine is limited by the browser's security sandbox.

            1 person found this helpful
            • 3. Re: Barcode Reading Using Flex
              Gus187 Level 1

              As most of the barcode scanners are keyboad wedge you'll get the information as it was typed in the keyboard, but if by any chance need to access the hardware you could use Merapi, which allows you to connect to devices through a Java, the only problem is that you'll have to install the application in the client machine...

               

              We recently used it to connect an Flex/Air application to a MagneticStripeReader, SignatureCapture and a PinPad and it worked perfectly

               

              HTH

              Gus

              • 4. Re: Barcode Reading Using Flex
                JeffryHouser Level 4

                Will Merapi work with a web based application?  Will there be cross domain issues?  Will Flash in the browser access access a local IP address?  Will Merapi return a cross domain file?

                 

                I guess conceptually it should work, but Merapi was designd to extend AIR, not web applications.

                • 5. Re: Barcode Reading Using Flex
                  GauravPatil Level 1

                  Thanks Guys.

                  Your replies have been very helpful. We need to give it a try using a scanner only then we can decide whether to use Flex in application development or not.

                   

                  Please suggest any workarround or any thing kind of source code which you found during your RnD phase.

                   

                  Regards,

                  Gaurav

                  • 6. Re: Barcode Reading Using Flex
                    GauravPatil Level 1

                    Hi,

                     

                    Thanks for the information mate.

                     

                    My application isnt a Desktop application, its a web application so the Flash will run in web browser only. So are you saying that you had developed a web application and you managed to access the Magnatic stripeReader, Signature Capture and Pinpad??If so thats greate,we will head to that direction then. But i guess you must have developed a desktop application with ADOBE AIR.

                     

                    regards,

                    gaurav

                    • 7. Re: Barcode Reading Using Flex
                      oldMster

                      The mag stripe reader and pinpad should present any input to the input buffer - same as the keyboard.  If the signature capture presents itself as a 'camera' to the system, then it would also be accessible without AIR.  If not, no browser based development will let you get direct access to the hardware, that violates the security sandbox of that platform.  You would need to resort to Java, Active-X, or even a small python 'wedge' to deal with that.

                      • 8. Re: Barcode Reading Using Flex
                        marciofermino Level 1

                        Hello friends, please if anyone can help.

                         

                        I really need to read barcodes EAN 13 and others.

                         

                        In ActionScript (Flex or Air Mobile)

                         

                        Thank you.