# Help with loading a variable from url string into Action Script

**URL:** https://forum.kirupa.com/t/help-with-loading-a-variable-from-url-string-into-action-script/226640
**Category:** flash
**Created:** [May 22, 2007, 8:33pm UTC](https://forum.kirupa.com/t/help-with-loading-a-variable-from-url-string-into-action-script/226640 "2007-05-22T20:33:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ditty](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@Ditty](https://forum.kirupa.com/u/Ditty)
#### Post date: [May 22, 2007, 8:33pm UTC](https://forum.kirupa.com/t/help-with-loading-a-variable-from-url-string-into-action-script/226640/1 "2007-05-22T20:33:14Z")

</div>

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](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
