# Making QueryString dynamic

**URL:** <https://forum.kirupa.com/t/making-querystring-dynamic/274013>\
**Category:** Uncategorized\
**Created:** [October 23, 2008, 7:01pm UTC](https://forum.kirupa.com/t/making-querystring-dynamic/274013 "2008-10-23T19:01:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maximillion511](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@maximillion511](https://forum.kirupa.com/u/maximillion511)\
**Post date:** [October 23, 2008, 7:01pm UTC](https://forum.kirupa.com/t/making-querystring-dynamic/274013/1 "2008-10-23T19:01:35Z")

</div>

hello Kirupa!!!:jamesbond:

k so since you are reading this. done anyone know how i can make a queryString dynamic?  
meaning.

```auto

AS

item_id.text = this.loaderInfo.parameters.item_id;

var testval:String = this.loaderInfo.parameters.item_id;
if (testval != null) {
    item_id.text = testval;
} else {
    item_id.text = "none";
}

HTML
<script language="javascript">
    if (AC_FL_RunContent == 0) {
        alert("This page requires AC_RunActiveContent.js.");
    } else {
        AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width','550',
'height','400',
'id',
'flashVars3',
'align','middle',
'src',
'flashVars3',
'quality',
'high',
'bgcolor',
'#ffffff',
'name',
'flashVars3'
,'allowscriptaccess'
,'sameDomain',
'allowfullscreen',
'false',
'pluginspage',
'http://www.macromedia.com/go/getflashplayer',
'movie',
'flashVars3',
 [COLOR=Red]'flashvars', 'item_id=9232' [/COLOR]
); //end AC code
    }
</script>

```

the red line is what i am having trouble with.

cause if i enter a value then it works, but that value changes depending on what the user selects before we get to the flash app. so this time it was 9232 but the next time it could be 12345?

is there a way that i can create a variable to place in the value that can change as the item\_id does?
