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

Open HTTP Connection from ActionScript, JavaApplet?

Discussion in 'General Programming Chat' started by pk_69, Oct 3, 2010.

  1. pk_69

    pk_69 Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 3, 2010
    Messages:
    701
    Likes Received:
    388
    Location:
    Interwebz
    Hi everyone,
    just wonder if someone with ActionScript experience can answer.

    Is it possible open HTTP connection from actionscript (flash)?
    I did a quick search and it seems to be possible, at least I found some examples.

    This is what I'm thinking - since flash executed in the context of the client's browser if it it is possible sending http requests (get, post) so it would be possible to implement bots with flash.

    Sounds too evil to be true...

    Any other options? java applets?

    thanks
    pk
     
  2. minute80

    minute80 Regular Member

    Joined:
    Dec 3, 2008
    Messages:
    310
    Likes Received:
    81
    I looked into this matter some time ago, and for bot puposed it doesn't work, since it is a very limited socket class. On the other hand Java works perfectly but people have to give you permission to run it out of the sandbox.
     
    • Thanks Thanks x 1
  3. sheppardzwc

    sheppardzwc Newbie

    Joined:
    Oct 21, 2010
    Messages:
    15
    Likes Received:
    0
    Java works better. ActionScript has a limited socket class.. and really, is limited in itself. You could also try PHP too if you're looking for serverside.