I've been trying to make a few of the games I've made be able to submit scores to my website. To do this, the games are being displayed as .swf on respective pages with form html around them and a submit button below. (from web development, I've learnt that a form needs to be submitted rather than just linked to a page in order to pass post/get data).
Inside this .swf file the values are submitted as post data by the GET tool. I then have the submit button linked to a php page which utilises all of the posted data from before as well as cookies for usernames etc. however, it appears that the post data is not being collected from the .swf file.
I looked around these forums for a similar problem and found a similar thread, which was answered with using FlashVar parameters, which I have added but still been unsuccessful with.
Does anybody know where I'm going wrong?
[font:Courier New]<form action="arcade-score.php" method="post">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
id="JSFunction" width="640" height="480"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="../games/meteor.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="allowScriptAccess" value="sameDomain" />
<param name=FlashVars VALUE="param1=Gameid¶m2=Score">
<embed src="../games/meteor.swf" quality="high" bgcolor="#000033"
width="640" height="480" name="JSFunction" align="middle"
FlashVars="param1=Gameid¶m2=Score"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object><br>
<?php include("inc34b.php"); ?>
</form>[/font]
This is the html for the embedded .swf file.The php include file below simply links to a bunch of displaying of information and html which is not relevant to the .swf file. I'm not entirely sure how post data works with .swf. I thought that a form would be needed because from previous web development, I have used forms to cover inputs that are being used as post data.
The two Values being posted are 'Gameid' and 'Scores'.
All I want it to do is successfully....
- Post the data from the .swf file.
- This to be collected in the webpage.
- Collect this data successfully and then store it as a php variable.
Any information on how this POST works is also much appreciated. I assume it appears on the next page linked from the current page similar to POST forms.





27CDB6E-AE6D-11cf-96B8-444553540000"





