Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default Flash socket policies

    I was just wondering if anyone's managed to get flash socket policies to work. Everytime I try it apparently "times out while waiting for a response" from my Java server (which serves the xml policy and the actual game data). The Java server definitely gets the "<policy-file-request/>" and answers it, yet it still times out.

    My VirtualRoom was going brilliantly until I hit this wall, any help would be appreciated.

    Tried:
    Forwarding port + disabling firewall.
    Setting up another policy server on port 843.
    Putting a crossdomain.xml in the root of the webserver.

    The socket works fine inside Flash itself, but when I view the swf in a webpage it won't connect.
    Last edited by Apolva; 06-06-2010 at 12:14 PM.

  2. #2
    Join Date
    Nov 2008
    Location
    Cambridge, UK
    Posts
    901
    Tokens
    100

    Default

    This was the biggest problem me and someone else had when trying to do socket connections in AS2. Since moving to AS3, I haven't had the problem, but that may be something to do with the fact I'm still doing everything in a debug player and within a VPN.

    I shall get in contact with the person I develop with and see if he can remember how we sorted it before, bear with me
    we're smiling but we're close to tears, even after all these years

  3. #3
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    OK that'd be great thanks

    This is driving me insane

  4. #4
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    I had the same issue when I was making a chat server for a client. Switched the AS3 and everything just went to much more smoothly.

    I would recommend upgrading, but you have so much work already in AS2 that your only saviour would be MattFr's friend. Otherwise, you are re-writing to AS3

  5. #5
    Join Date
    Nov 2008
    Location
    Cambridge, UK
    Posts
    901
    Tokens
    100

    Default

    Yes, definitely switch to AS3, your code will be a lot nicer My friend doesn't come on till late, but I'll let you know if he remembers how we fixed it, as I said.
    we're smiling but we're close to tears, even after all these years

  6. #6
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    Yeah, I do want to switch to AS3 but means most of what I know goes down the drain since I'd need to be familiar with lots of new concepts (+ rewrite all my stuffs).

  7. #7
    Join Date
    Nov 2008
    Location
    Cambridge, UK
    Posts
    901
    Tokens
    100

    Default

    Quote Originally Posted by Apolva View Post
    Yeah, I do want to switch to AS3 but means most of what I know goes down the drain since I'd need to be familiar with lots of new concepts (+ rewrite all my stuffs).
    Better to do it sooner, you don't have to rewrite as much. It is seriously worth switching. I asked my friend, he can't remember, sorry
    we're smiling but we're close to tears, even after all these years

  8. #8
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    Aww that's annoying, thanks anyway. Was going to get the AS2 client up and running, then rewrite in AS3 while people used the initial copy.

    Edit - reading some AS3 examples now
    Last edited by Apolva; 06-06-2010 at 09:18 PM.

  9. #9
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    OK I'm rewriting in AS3 now seems a much neater language lol.

    Just hope this will solve the problem.

  10. #10
    Join Date
    Nov 2008
    Location
    Cambridge, UK
    Posts
    901
    Tokens
    100

    Default

    Quote Originally Posted by Apolva View Post
    OK I'm rewriting in AS3 now seems a much neater language lol.

    Just hope this will solve the problem.
    Good man If you need any help just ask.
    we're smiling but we're close to tears, even after all these years

Page 1 of 3 123 LastLast

Posting Permissions

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