Variable from Php to Flash

Hi everone:)

I have trouble passing a variable from a php script to flash…
example…

<?php

echo “path=members.lycos.nl/0125.jpg”;

?>

Flash

loadVariablesNum(“http://members.lycos.nl/temp.php”, 0, “GET”);
loadMovieNum(path, 0);

It doesn’t work…can someone tell me whats wrong with this picture???

WildC :alien:

In flash you need the quotation marks to come through as well. If your path comes through, your as will look like this in flash:


loadMovieNum(members.lycos.nl/0125.jpg, 0);

and I don’t think that would work. I’m assuming you’re using php because that URL is going to be changing. Maybe you should just use the filename in your PHP script instead of the whole path like:


loadMovieNum("http://members.lycos.nl/"+path+".jpg", 0);

Then in your PHP script have:


echo "path=0125";
//or
print "path=".$variable;

That’s my guess.