1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Interacting with a Flash website.

Discussion in 'Visual Basic .NET' started by Renwo, May 18, 2012.

  1. Renwo

    Renwo Junior Member

    Joined:
    Aug 15, 2011
    Messages:
    130
    Likes Received:
    16
    I am having trouble figuring out how to interact with a flash website. Is it even possible to do so?

    I need to find elements, input text, and click buttons in a "application/x-shockwave-flash" object.

    Anyone have any idea where to start?
     
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,155
    I really doubt this is possible. Maybe with image recognition where you will guess the position of the elements and move the mouse around to interact with them. Otherwise, I can't think of any simple way.
     
  3. Chris22

    Chris22 Regular Member

    Joined:
    Sep 29, 2010
    Messages:
    400
    Likes Received:
    1,059
    What are you trying to achieve by interacting with this flash website, are you trying to sign up, fill in a form?

    Have you considered automating this at the network layer instead of the application layer?
     
  4. Renwo

    Renwo Junior Member

    Joined:
    Aug 15, 2011
    Messages:
    130
    Likes Received:
    16
    Yes, it's basically signing up.

    The process looks something like this:

    Goto website -> Click register -> Fill out username, password 2x, email, click terms, enter captcha -> Click register -> Fill another input and select an item from a combobox -> click button -> wait for listbox -> scrape content from listbox -> click an item on listbox -> click a couple more buttons

    Would this be possible to do with webrequest post/get?
     
  5. Chris22

    Chris22 Regular Member

    Joined:
    Sep 29, 2010
    Messages:
    400
    Likes Received:
    1,059
    Absolutely.

    It depends if the flash app is using requests, it could always be using sockets too.

    Either way, whip out your http debugger or packet sniffer and have a snoop around.
     
  6. smack

    smack Junior Member

    Joined:
    Feb 1, 2010
    Messages:
    182
    Likes Received:
    78
    Occupation:
    Software Engineer/Evil Genius
    Location:
    inside .NET
    the most common form of network communication for flash applications is over UDP, not TCP/HTTP.

    that's not to say that flash doesn't or can't communicate over TCP/HTTP, but they have quite a bit of support for UDP baked in to the framework.