I just spent hours trying to figure out how to pass textinput from flash to PHP on my Nokia N95. I have a working computer/browser/flash solution, but i want to be able to use it on my Nokia N95, so obviously i need to change something to make i work with Flash Lite 2/3?!
This my my working flash actionscript-code:
PHP Code:
on(click){
yourtitle = write.yourtitle.text;
yourtext = write.yourtext.text;
yourtags = write.yourtags.text;
if (yourtitle eq "") {
write.gb_status.text = "Missing: Title";
} else if (yourtext eq "") {
write.gb_status.text = "Missing: Text";
} else if (yourtags eq "") {
write.gb_status.text = "Missing: Tags";
} else {
write.gb_status.text = "Please wait...";
newEntry = new LoadVars()
newEntry.ref = this
newEntry.submit = "Yes"
newEntry.yourtitle = yourtitle
newEntry.yourtext = yourtext
newEntry.yourtags = yourtags
newEntry.sendAndLoad("Blog.php?action=write&r="+random(999), newEntry, "POST")
newEntry.onLoad = function(success){
if(success){
write.gb_status.text = this.gb_status;
read.loadEntries("Default", 1);
write.yourtitle.text = "";
write.yourtext.text = "";
write.yourtags.text = "";
}
}
}
}
I have also tried with an absolute path to the php-file. Doesn't work
I have tried changing the "on (click)" to "on (press)". Doesn't work
Nothing happens when pressing the "submit" button, that holds this AS.