Home | Web Design | App / Game development | Flash | Flash Games | Graphic Illustration | Technical Illustration | Contact | Site Map    Twitter
 
  Galaxy Graphics Limited

Technical InformationCommon SWF questions: In-game scoretable does not display or scores do not submit

Your Flash game is up and running on your website. The developer has confirmed the in-game scoretable works OK, but you can't see it. The leaderboard screen is just blank for you, but fine for others. OR - you play the game, score some points and submit, but nothing goes into the database. What's the problem?

The problem is caused by the difference between accessing http://www.yourdomain.com and http://yourdomain.com. (no www) Becasue of Flash's "security sandbox", it sees these as two different websites, and chances are that the one without www is the one causing the problems.

The solution is to add a crossdomain file to the root directory of your website, called crossdomain.xml and with the content as below, adding in your real domain name in place of the example. After this, the scoretable will work correctly either with or without the www.

A sample crossdomain file

<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>

<allow-access-from domain="*.yourdomainnamehere.com" />

</cross-domain-policy>

 
Site content Copyright © 2001-2014 Galaxy Graphics Limited. | Privacy Policy | Terms of use