Topic: Chumby LoadVars
I have seen a few posts that have mentioned something similar to what I'm trying to accomplish but none of those suggestions seemed to fix my problem so I'm hoping I just missed something. I have created a very simple project (based off of Raffaele Sena's Chumby template) that makes a menu of 8 choices. When the user clicks one of the choices, it sends a post request to a local server. I have used FlashDevelop to create an swf file. This file performs perfectly on my desktop. Clicking one of the menu choices sends the corresponding post request to the server. However, I put it onto my chumby and it no longer works correctly. It looks like it works, but the server never sees the post requests from the chumby. Here is my relevant code:
function onMenuSelect(i:Number) {
var sendInfo:LoadVars = new LoadVars();
var recieve:LoadVars = new LoadVars();
recieve.onLoad = function(success:Boolean) {
if ( success) {
trace(recieve);
}
}
//Load up all the variables you want to POST
sendInfo.myVar = i;
sendInfo.sendAndLoad("http://192.168.1.9:7650/test.php", recieve, "POST");
}
Is there a known problem using LoadVar.sendAndLoad on flash lite or am I doing something wrong?
Thanks for any help you can provide.