473,395 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Send flash variables to a php file on a different domain.

1
I have been at this for two weeks now. I am trying to send two variables from a flash file located on newgrounds.com, kongregate.com, armorgames.com or any other site like that to a php file on my site pogolama.com.

I have read through most of the adobe manuals for security and still have no Idea how to use those features, that's why there are so many variations of them in my code.

I can not figure out why my php file will not get the variables I am sending it. In the following code I simplified all of my php code for testing purposes and I still cant even echo the variables that are supposed to be sent.

I am using a virtual dedicated server on godaddy.com also I tried it on their free web hosting and their cheapest hosting plan. I have the crossdomain.xml file uploaded to pogolama.com/public_html/crossdomain.xml and have tried uploading it to pogolama.com/crossdomain.xml.

Im not sure what else to say except, someone please help. :)

Action Script 2.0
Expand|Select|Wrap|Line Numbers
  1. varsToSend = new LoadVars();
  2. varsToSend.player_name = player_name;
  3. varsToSend.player_score = running_time;
  4. varsToSend.send("http://www.pogolama.com/view.php", "POST");
  5.  
  6. import flash.system.Security;
  7. import flash.system.* ;
  8. System.security.allowDomain("www.pogolama.com");
  9. System.security.allowDomain("pogolama.com");
  10. System.security.allowDomain("*");
  11.  
  12. System.security.loadPolicyFile("pogolama.com/public_html/file.xml")
  13. System.security.loadPolicyFile("http://www.pogolama.com/public_html/file.xml");
PHP
[PHP]<?php
$player_name = $_GET[player_name]; /* I have one set to GET and on to POST just to test if that is the problem. */
$player_score = $_POST[player_score];
echo $player_name;
echo $player_score;
?>[/PHP]

Crossdomain.xml
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0"?>
  2. <cross-domain-policy>
  3.   <allow-access-from domain="*" />
  4.   <allow-access-from domain="www.kongregate.com" />
  5.   <allow-access-from domain="*.kongregate.com" />
  6.   <allow-access-from domain="www.kongregate.com/*" />
  7.     <allow-access-from domain="www.pogolama.com" />
  8.   <allow-access-from domain="*.pogolama.com" />
  9.   <allow-access-from domain="www.pogolama.com/*" />
  10. </cross-domain-policy>
  11.  
Dec 30 '07 #1
0 2750

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ralph Seguin | last post by:
Ok... I am having problems getting variables/values INTO Flash from an external source (PHP). I'm NOT having problems getting loadVariablesNum() to _SEND_ variables via POST, but I _AM_ having...
2
by: windandwaves | last post by:
Hi Folk I am new to flash (just so you don't think I am completely stupid) I have a flash file that I want to execute a short action script and then load a PHP file in the its own window,...
4
by: NewsMS | last post by:
I'd like to know if static variables have thread scope or process scope. This means if the variable can be shared among threads on the same process or is available only to different class instances...
7
by: Victor | last post by:
I've got two domain names sharing the same IP address that use ASP VBScript If I set a session variable with domain 1, it is only available for domain 1 - this is correct? If I set an...
11
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of...
7
by: Ron Hinds | last post by:
Our webserver is currently Windows 2000 Server. Many of our pages send mail using the CDONTS object library. It is simple and very straightforward. We have built a new webserver using Windows...
1
by: dosingh | last post by:
i've put this page together using asp, html, javascript amd flash. java passes a number of variables over to the flash file but the flash graph does not appear. The error which appears is...
1
by: jgentes | last post by:
I have read through the manual on php dot net, and a number of tutorials around the net, however when I create an email and attempt to attach a file, I always get the hex (textual) representation,...
4
by: Ronald Raygun | last post by:
I am building a website and I am displaying an animated image. The image was originally an animated gif. However, the graphic designer has told me that the best way forward (better animation +...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.