Hi Fidel, I wrote a litle app some weeks ago where I tested a RFID
reader that emulate keyboard, here it is if you want it :)

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="intApp(event);">
        
        <mx:Script>
                <![CDATA[
                        import mx.managers.FocusManager;
                        import mx.events.FlexEvent;
                        
                        
                        private function intApp(event:FlexEvent):void
                        {
                                
this.rfidInput.addEventListener(FlexEvent.ENTER, onRFIDInput);
                        }
                        
                        private function startRFIDRead(event:MouseEvent):void
                        {
                                rfidInput.text = '';
                                focusManager.setFocus(rfidInput);       
                        }
                                        
                        private function onRFIDInput(event:FlexEvent):void
                        {
                                trace(event);
                                focusManager.hideFocus();
                                focusManager.setFocus(readButtom);      
                        }

                ]]>
        </mx:Script>
        
        <mx:TextInput id="rfidInput" horizontalCenter="0" verticalCenter="0"/>
        <mx:Button id="readButtom" label="les" horizontalCenter="0"
verticalCenter="30" click="startRFIDRead(event);"/>
        
</mx:Application>



--- In [email protected], "Fidel Viegas" <[EMAIL PROTECTED]>
wrote:
>
> Hello all,
> 
> I was wondering if anyone has tried reading a Barcode Scanner from
> Flash using either Flex or Flash CS. Since some Barcode Scanners
> emulate the keyboard, I thought that it should be possible to read it
> from Flash. Has anyone had any luck with that? And how did you go
> about doing it?
> 
> Thanks in advance,
> 
> Fidel.
>


Reply via email to