Help with loading a variable from url string into Action Script

Im trying to take a variable from a php file and insert in into action script. What I’d like to do is take the value of a url for example
http://www.mysite.com/flashfile.php?value=MYVARIABLENAME

and insert it into Action Script to dynamically load a movie inside a main movie.

_root.currMovie = “MYVARIABLENAMEHERE”;
container.loadMovie(_root.currMovie+".swf");
stop();

Im not an action script guy… is this a workable approach? I’ve looked around and can’t seem to find any tutorials that are this specific approach.

Using Flash 8 with AS 2.0

TIA for any assistance
SD