# Embedded AS2 .swf won't load variables from PHP!

**URL:** <https://forum.kirupa.com/t/embedded-as2-swf-wont-load-variables-from-php/296469>\
**Category:** flash\
**Created:** [September 15, 2009, 12:50pm UTC](https://forum.kirupa.com/t/embedded-as2-swf-wont-load-variables-from-php/296469 "2009-09-15T12:50:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![0L4F](https://avatars.discourse-cdn.com/v4/letter/0/848f3c/32.png) [@0L4F](https://forum.kirupa.com/u/0L4F)\
**Post date:** [September 15, 2009, 12:50pm UTC](https://forum.kirupa.com/t/embedded-as2-swf-wont-load-variables-from-php/296469/1 "2009-09-15T12:50:08Z")

</div>

Hello Kirupians, I need some urgent help:  
I’m working on a website for a client that’s entirely built in AS3. Right now I’m building a newsletter section, and want to use an AS2 .swf to send/load variables to PHP.

Loading the AS2 swf into the AS3 environment works fine. Everything seems to work, animations are fine, input text fields work.

But when I try to send / load variables like this:

```php
this.loadVariables(_projectPath + "newsletter/newsletter.php", "post");

```

nothing happens.

Does any of you know if this is even possible and/or should work?

Thanks!

- edit - : I just tested the AS2 SWF on it’s own, and it works! But it appears to stop working inside an as3 environment… Strange!
