# Flash Dynamic text box and variable question

**URL:** <https://forum.kirupa.com/t/flash-dynamic-text-box-and-variable-question/141204>\
**Category:** Uncategorized\
**Created:** [March 17, 2005, 6:21pm UTC](https://forum.kirupa.com/t/flash-dynamic-text-box-and-variable-question/141204 "2005-03-17T18:21:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jw06](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@jw06](https://forum.kirupa.com/u/jw06)\
**Post date:** [March 17, 2005, 6:21pm UTC](https://forum.kirupa.com/t/flash-dynamic-text-box-and-variable-question/141204/1 "2005-03-17T18:21:42Z")

</div>

I’m trying to do the loading php and mysql content into SWF files tutorial ([http://www.kirupa.com/developer/actionscript/flash\_php\_mysql.htm](http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm))

I’m having some problems with it. I have my dynamic text box made and assinged the variable name: variable.

I have the php:

```php

<?php
//The value of $x would be printed to the screen but the SWF would not read the data
$x = "abc";
print $x;

//The value of $x would be printed to the screen and because of the prefix 'myVar=', the SWF will //interpret this as being the intended value for the variable myVar in the SWF
print "variable=$x";
?>

```

I changed the myVar part to variable, what my dynamic text box is assigned. and For the actions on the movie of the dynamic text box i have:

onClipEvent (load) {  
//assuming you have a personal web server and PHP installed locally  
loadVariables(“[http://www.arctichosts.com/test/loadphp.php](http://www.arctichosts.com/test/loadphp.php)”, this, “GET”);  
}

Help ☹ I’ve tried multiple things. And yes, my server has php support.
