Well now i’ve been looking all over for php intergration to flash using actionscript 3.0
What I have found so far seems to make sense and people have had similar issues but have had them solved on other mb’s. I even tried grabbing a solution some one had but it did not work for me.
I am trying to pass information from variables in php into a dynamic text field in flash with as3.0
this is my php code:
<?php
$thisYear = “2008”;
echo “thisYear=”.$thisYear;
?>
this is my as3.0 code:
var variables:URLVariables = new URLVariables ();
var mailAddress:URLRequest = new URLRequest (“profile/php/email_form.php”);
send_btn.addEventListener(MouseEvent.CLICK, onLoaded);
function onLoaded(e:Event):void {
mailAddress.data = variables;
mailAddress.method = URLRequestMethod.GET;
test_tf.text = variables.thisYear;
}
;
Unfortunately i keep getting this error:
TypeError: Error #2007: Parameter text must be non-null.
at flash.text::TextField/set text()
at test_variables_fla::MainTimeline/onLoaded()
Any help would be great.
Thanks,
Chris