Loading var from PHP script using flash
- by webnoob
Hi All,
I am trying to get a var from a PHP script running on my web server and from every forum post I have read, what I am doing should be working. I have the following:
var lvContent = new LoadVars();
lvContent.load("http://{MY_DOMAIN}/Includes/getID.php");
trace("ID: " + lvContent.pageID);
The problem is that ID in the trace is always undefined.
I have tried the following in the php file:
<?php
echo "pageID=29";
?>
This is a small test to try and get it working but I cannot seem to.
Am I doing something wrong?
Thanks in advance for the help.
I am using ActionScript 2.0