getBytesLoaded: [type Function]

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

try getBytesLoaded()

just like it is trying to tell you, it is a function.

Ok, that was not so bright…
Now it workts but I still don’t get ANY data. The function getBytesLoaded doesn’t show anything, not even a zero.

What am I doing wrong, the object seems totally empty! But somehow it receives data since the onLoad function is called.

Tanx

No ideas at all???