Loading var from PHP script using flash

Posted by webnoob on Stack Overflow See other posts from Stack Overflow or by webnoob
Published on 2010-05-10T11:26:44Z Indexed on 2010/05/10 11:34 UTC
Read the original article Hit count: 269

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about flash

Related posts about php