HI
Thenk`s for help. Now looks like something works.
php code open a new windows with:
But I expect to see a status.text = "Submited data was saved" in flash.
Code:
btn.onPress = function(){
SData.Title = Title.text
SData.send("save.php", SData, "POST")
}
SData = new LoadVars()
SData.onLoad = function(){
if(this.writing=="Ok") {
gotoAndStop(1)
status.text = "Submited data was saved"
} else(status.text = "Error in saving submitted data")
}
status.text area is empty. and also a text file myText1.txt is empty
In the same flash file function should load saved text, but it dosnt, :
Code:
poga.onPress = function () {
myData = new LoadVars();
myData.onLoad = function() {
Title.text = this.Title1;
};
myData.load("myText1.txt");
}