PDA

View Full Version : beginner php question


Nasier
10-19-2003, 06:49 PM
in frame 1 I've a dynamictextfield named "example".

Also in frame 1 there's this actionscript:
loadVariables ("myPHP.php", this, "POST");
stop();

There are no more frames in this .fla.

In myPHP.php there's the following script:

<?
$example = '12';

print "&result=Okay&example=$example&";

?>

When I publish this the dynamictextfield doesnt
say 12. What am I doing wrong?

Thanx in advanced.

CyanBlue
10-19-2003, 07:56 PM
Howdy... ;)

It normally takes time for Flash to read external data...
So, you'd need to run some sort of loader for that...
That loader will loop through several frames as it is with the normal preloader...
If you use F5, you will find plenty information if you search for 'swonk' or 'swonking' in this forum...
If you use FMX, you should really use LoadVars() object instead of loadVariables() function for this specific purpose... You can use onLoad handler that will just do the loading part for you... ;)