Please tell me one of you actionscripters can help me.
I have a file called content.php with the following code:
<?php
$phpcontent1 = "I want this text to display in a flash text field";
print("&swfcontent1=$phpcontent1");
?>
Then I have a flash file with a text field that has both an instance name of “swfcontent1” & the variable name of “swfcontent1”. The first keyframe in my time has the following actionscript in it:
contentVars = new LoadVars();
contentVars.load("http://localhost/content.php");
contentVars.onLoad=function(){
txtbox1 = this.swfcontent1;
}
When I test my movie, my text box shows “_level0.swfcontent1” instead of the actual variable contents. Can anyone tell me why this is?
Thanx