ReCaptcha for Flex is a Flex 4 mxml component. It can be used to secure registration (or similar) procedure by distinguishing human from machine. The component extends Spark BorderContainer and consists of image container into which captcha image is loaded, input text field and reload button.
The component utilizes well-known reCaptcha service (http://recaptcha.net). It uses php scripts to get the captcha image from recaptcha.net server and to verify user’s input, so your server should be php enabled
The component has public method verify() which triggers verification process. Custom Verified event is dispatched after verification process, and it has 2 properties:
- verificationSucceeded:Boolean (true/false)
The component also has public property autoReloadIfWrongInput of type Boolean with default value set to true. It specifies whether to automatically load new captcha image if the input is incorrect.
The component adds 13 kb to your application. It can be easily skined.
All code is commented and the documentation contains simple code snippet on how to use the component.
Flex 3 code is not currently included into the package, but available upon request.