# Pass a variable via url during development

**URL:** https://forum.kirupa.com/t/pass-a-variable-via-url-during-development/298410
**Category:** flash
**Created:** [October 18, 2009, 4:36pm UTC](https://forum.kirupa.com/t/pass-a-variable-via-url-during-development/298410 "2009-10-18T16:36:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![justkevin](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@justkevin](https://forum.kirupa.com/u/justkevin)
#### Post date: [October 18, 2009, 4:36pm UTC](https://forum.kirupa.com/t/pass-a-variable-via-url-during-development/298410/1 "2009-10-18T16:36:37Z")

</div>

When debugging an app I’d like to be able to quickly change some startup values by changing the url. For example, when I run an app in Flex, it opens a url like this:

file:///somepath/GameClient/bin-debug/GameClient.html

I’d like to be able to change the url to this:

file:///somepath/GameClient/bin-debug/GameClient.html?myvar=myval

then reload the page and have my app pickup the variable. What’s the best way?
