Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7645287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:54:10+00:00 2026-05-31T09:54:10+00:00

The idea behind is a multiplayer browser game which interacts with a PHP server.

  • 0

The idea behind is a multiplayer browser game which interacts with a PHP server.

Right now it works like this:
Every second the browser is doing an ajax call to the php script which checks everything and returns the response.
All in all it runs fine, but the problem is that the browser gets overloaded (because of thousands of ajax requests) after a while and it becomes impossible to play anymore. Also the delay of 1+ second is pretty much.

My idea is to have a simple flash pixel which will have a 2-way communication with the server.
For example:

  • User makes and action
  • Javascript function calls the flash pixel with some parameters
  • The flash sends the request to the server
  • The server “announce” about this action to all other flash listeners (users online)
  • The response from the server is received
  • UI updated

Something like that.

The data which is sent and received can be just strings (json) or any other.

I read about different RTMP servers and also about smartfoxserver.com. It wouldn’t be a problem to buy any of them, but in my eyes they are offering too much for my needs (audio video streaming, etc.). Also they are not PHP based. So using an RTMP server would require it to start a PHP script when needed. This would be also not a problem until the user can play without lags.

In case the solution would be to install a RTMP server, there is a “RTMP client” in PHP, but unfortunately there isn’t much information/documentation about it.

In any case, if no solution is found, I’m going to use the same Flash “pixel” which will send requests and receive responses via PHP AMF. It will have small delays and won’t be persistent but it should solve a part of the problem.

Maybe some of you already had this problem and found a solution or any other ideas of how to realize this are welcome.

Thank you

P.S. Google Wave was using something similar in their interactive chat, when some user was typing and the other could see this in real time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:54:12+00:00Added an answer on May 31, 2026 at 9:54 am

    You can use XMLSocket in AS3 to establish a socket connection with the PHP server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the idea behind implementing a tagging system like Stack Overflow? This is
The idea behind this code is that it uses an extension method to instantiate
I love the idea behind Solution Factory project. But, unfortunately this project has a
Curious, what is the idea behind this: @() -as [bool] # False @($null) -as
Can anybody explain the idea behind JSP custom tag libraries and the JSP 2
The basic idea behind a Cancel button is to enable closing your window with
I understand (I think) the basic idea behind RESTful-ness. Use HTTP methods semantically -
I wanted to ask what is the idea behind the fact that System.String doesn't
I have no idea what is the rationale behind naming the vdev (virtual devices)
idea I would like to create a little app for myself to store ideas

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.