package { import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.text.TextField; public class RecaptchaExample3 extends Sprite { /** * * */ public function RecaptchaExample3() { this.recaptchaWidget.publicKey = '6Lf2TgEAAAAAAAS90LTLuOyhbkQ8pOOI3HU7Mteh'; this.submitButton.addEventListener(MouseEvent.CLICK, this._submit); } private function _submit(e:MouseEvent):void { trace('Challenge:\t' + this.recaptchaWidget.challenge); trace('Response:\t' + this.recaptchaWidget.response); } } }