Making QueryString dynamic

hello Kirupa!!!:jamesbond:

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


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?