Hello,
I’m trying to load PHP data into a Flash movie, and it worked a couple of times. But now I get the following message when I try to write the loaded number of bytes to the screen:
“getBytesLoaded: [type Function]”
“getBytesTotal: [type Function]”
This is what I do:
function writeStringFromDB(TextID,Language,ButtonID)
{
var stext = new LoadVars();
stext.TextID = TextID;
stext.Language = Language;
var tstring = new LoadVars();
stext.sendAndLoad("fetchText.php",tstring,"POST");
tstring.onLoad = setText(tstring,ButtonID);
Debug.text += "getBytesLoaded: " + tstring.getBytesLoaded + "
";
Debug.text += "getBytesTotal: " + tstring.getBytesTotal + "
";
function setText(textOBJ,ButtonID){
Debug.text += textOBJ.toString();
}
}
And the data returned isn’t found in the object, the object seems empty:
PHP script looks like this:
<?php
echo "TextString=TestTestTset";
?>
Thanx,
Marcel