# Newbie to PHP Flash MX 2004 Integration

**URL:** https://forum.kirupa.com/t/newbie-to-php-flash-mx-2004-integration/60352
**Category:** programming
**Created:** [August 9, 2004, 7:57am UTC](https://forum.kirupa.com/t/newbie-to-php-flash-mx-2004-integration/60352 "2004-08-09T07:57:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Northchild](https://avatars.discourse-cdn.com/v4/letter/n/ecccb3/32.png) [@Northchild](https://forum.kirupa.com/u/Northchild)
#### Post date: [August 9, 2004, 7:57am UTC](https://forum.kirupa.com/t/newbie-to-php-flash-mx-2004-integration/60352/1 "2004-08-09T07:57:24Z")

</div>

Hi all,

I’ve been working on:

[http://www.kirupa.com/developer/actionscript/flash\_php\_mysql.htm](http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm)

Unlike other recent posters, I can’t even get past the first page! 😊  
I have PHP and MySQL set up on a remote server, tested and working. I know a bit about AS, PHP, MySQL.

I have a SWF with a single mc on the stage. The mc contains a single dynamic text field. The dynamic text field variable is named myVar. Attached to the mc is this:

```auto
 
onClipEvent (load) 
{
 loadVariables("[http://blahblahblah/title.php](http://blahblahblah/title.php)", this, "GET");
}

```

I’ve uploaded this SWF and the HTML container to the server. I also uploaded title.php with:

```auto
 
<?php 
$x = "abc";
print $x;
print "myVar=$x";
?>

```

So, I figure when I visit the page, I should get “abc” printed out. Instead I get this printed out:

\_level0.mcText.myVar

Baffled! Any help appreciated. 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 9, 2004, 4:16pm UTC](https://forum.kirupa.com/t/newbie-to-php-flash-mx-2004-integration/60352/2 "2004-08-09T16:16:11Z")

</div>

I had the same probleme when i tried to do that tutorial but what i tried to get it to work was

```auto
onClipEvent (load) {
	loadVariables("phppage.php", this, "GET");
}

```

i just took out the whole site url and put the relative url

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 9, 2004, 7:46pm UTC](https://forum.kirupa.com/t/newbie-to-php-flash-mx-2004-integration/60352/3 "2004-08-09T19:46:27Z")

</div>

Thank you for the reply blakely3. 🙂 I changed my URL to relative in the onClipEvent (load), cleared my browser cache and re-uploaded the files, but unfortunately I get the same result as before.

Still having trouble with this one.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 12, 2004, 4:01am UTC](https://forum.kirupa.com/t/newbie-to-php-flash-mx-2004-integration/60352/4 "2004-08-12T04:01:10Z")

</div>

bump!
