I'm trying to create a Flex application to receive a barcode input. I have a textInput to receive an input from barcode gun. When a user hit the barcode to the textInput it will do something. Here's the question. I'm using onChange event from the textInput which I think that it's not quite right, because every time the user input barcode the onChange event runs. For instance, if the barcode is 12 characters, the onChange event runs 12 times. What should I do to prevent such action? Every barcode has different length. Thanks a lot.
Try two things, in combination:
That should do the trick. It works for me, I hope it works for you.
Thanks a lot. It worked