# Passing values via URL

**URL:** <https://forum.kirupa.com/t/passing-values-via-url/312980>\
**Category:** flash\
**Created:** [August 17, 2010, 11:52am UTC](https://forum.kirupa.com/t/passing-values-via-url/312980 "2010-08-17T11:52:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnLawton](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlawton/32/42_2.png) [@JohnLawton](https://forum.kirupa.com/u/JohnLawton)\
**Post date:** [August 17, 2010, 11:52am UTC](https://forum.kirupa.com/t/passing-values-via-url/312980/1 "2010-08-17T11:52:35Z")

</div>

Help!!

I have committed to doing something that I thought would be really easy, but I can’t get it to work.

I want to be able to call an HTML page containing a Flash movie and have that Flash movie pick up a value from the URL of the page in which it sits.

So, I want to create a link to the HTML page such as:

\<a href=“[www.someserver.com/mypage.html?myname=John](http://www.someserver.com/mypage.html?myname=John)”\>Click here\</a\>

This will open the browser page so that the URL is:

[http://www.someserver.com/mypage.html?myname=John](http://www.someserver.com/mypage.html?myname=John)

I then want the Flash movie on mypage.html to read in the value John and put it into the movie variable myname.

I can see how to do it using pre-coded parameters as part of the HTML that loads the SWF, but I want the value to be determined by the calling link, not predetermined within the HTML on the movie page.

I also don’t want to have to create a dynamic HTML page for my movie if I can avoid it.

Does that make sense?

Can it be done?

HEEELP please. A speedy response will earn my undying gratitude and £50 to the Disaster Emergency Committee appeal for flood relief in Pakistan.

John ;~)
