On Thu, Nov 6, 2008 at 12:57 AM, Cato Paus <[EMAIL PROTECTED]> wrote: > 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>
Hi Cato, Thanks a lot for the code. Fidel.

