# Php intergration to flash

**URL:** <https://forum.kirupa.com/t/php-intergration-to-flash/277579>\
**Category:** Uncategorized\
**Created:** [December 14, 2008, 4:57am UTC](https://forum.kirupa.com/t/php-intergration-to-flash/277579 "2008-12-14T04:57:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![roll4dasoul](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@roll4dasoul](https://forum.kirupa.com/u/roll4dasoul)\
**Post date:** [December 14, 2008, 4:57am UTC](https://forum.kirupa.com/t/php-intergration-to-flash/277579/1 "2008-12-14T04:57:23Z")

</div>

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
