# Pass variables with the query string

**URL:** https://forum.kirupa.com/t/pass-variables-with-the-query-string/237864
**Category:** flash
**Created:** [September 4, 2007, 9:38pm UTC](https://forum.kirupa.com/t/pass-variables-with-the-query-string/237864 "2007-09-04T21:38:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Promethee](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@Promethee](https://forum.kirupa.com/u/Promethee)
#### Post date: [September 4, 2007, 9:38pm UTC](https://forum.kirupa.com/t/pass-variables-with-the-query-string/237864/1 "2007-09-04T21:38:23Z")

</div>

Hi, first of all great site (been using the tutorials a lot), then to the point, I am trying to pass a variable through the query string that is for example:  
test.swf?text=testText

I searched the forums and found something interesting, the thread gave a link to here:  
[adobe help link](http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14253&sliceId=1#querystring)

However it implies creating a textField named “text” on the Stage then reading the value from there once it has been loaded, I am wondering if there is any “neater” way in AS3 to do this, that is any Class or some sort of Global variable that would hold the information.

Thank you.

EDIT: Actually … You can’ t do it the TextField way any more in AS3.
