Results 1 to 4 of 4

Thread: flash + recaptcha

  1. #1
    Join Date
    Jun 2008
    Location
    Arganda, Madrid, Spain
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default flash + recaptcha

    hello there
    I know how to include a recaptcha in a html or php web page but I don't know how to include a recaptcha in a flash web page. I just thought of calling geturl from as2 flash8 for calling a php that holded the recaptcha

    After that, the php script might create a file with a content which indicated success or failure depending on the result of the recaptcha.

    Then, after calling geturl in flash, I would call sendandload of a loadvars object for calling a second php script which would be in a loop until it found the file writen by the first php script which holded the recaptcha. The loop would end by reading the file written by the first php script and seeing whether the content is success or failure. Then it would send the result back to flash through the loadvars. Then flash could continue the execution flow depending on the result of the recaptcha.

    This is the only solution which came to my mind but it does not seem straightforward to me. Does anyone have any other better solution to include a recaptcha for a website developed with flash?
    Thanks in advance
    Last edited by thosecars82; 06-28-2008 at 02:10 PM.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Are you specifically trying to incorporate reCaptcha or do you mean any captcha-type application?

  3. #3
    Join Date
    Jun 2008
    Location
    Arganda, Madrid, Spain
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Medyman View Post
    Are you specifically trying to incorporate reCaptcha or do you mean any captcha-type application?
    Hello there
    I am trying to incorporate a reCapthca as you said in first place.
    Any suggestion?
    Another problem I would like to find a solution for is more general. It consists on how I can manage comunicate a flash website which uses a php website to do the reCaptcha or anyother thing. With sendandload from loadvars object I don't get the interface of the php website visible to let the human interact with the interface. The only way I know to do that is through getURL but this way doesn't let flash to take the result of any variable like with sendandload.
    So, do you have any better idea than the one I first suggested that was not really straightforward? Well, may be that is the only way, but I doubt it.
    Thanks
    Last edited by thosecars82; 06-28-2008 at 04:45 PM.

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    I'm really not understanding your second question there. Any interface that is to interact with server-side scripting, should be created within Flash.

    Re: reCaptcha
    That really isn't coded with Flash/Flex interfaces in mind. According to the developers, they have no desire to make the coding of reCaptcha compatible or at least friendly with Flash. You would have to use some alternate techniques to get it to work. A quick Google search reveal this. That seems like the only way that you can get reCaptcha to work within Flash.

    Doing this with AS2's limited regex capabilities might be difficult. Of course, there are some third-party AS2 regex classes (RegExp is one). AS3 has native support for regular expressions, so that might make it easier.

    Any solution you come up with would be confusing and overly-complicated.

    My suggestion is to hand-code a captcha system entirely in Flash. Blizzard had a thread in these forums regarding this a while back (if memory serves). This is the route that I would take. If you're up for learning AS3, there are some AS3 classes for captcha, which would minimize any coding you would have to do

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •