# Flash AS3 - How to pass a value form Search Form to URLRequest string?

**URL:** <https://forum.kirupa.com/t/flash-as3-how-to-pass-a-value-form-search-form-to-urlrequest-string/327199>\
**Category:** flash\
**Created:** [February 12, 2012, 6:32pm UTC](https://forum.kirupa.com/t/flash-as3-how-to-pass-a-value-form-search-form-to-urlrequest-string/327199 "2012-02-12T18:32:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwkistler](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kwkistler](https://forum.kirupa.com/u/kwkistler)\
**Post date:** [February 12, 2012, 6:32pm UTC](https://forum.kirupa.com/t/flash-as3-how-to-pass-a-value-form-search-form-to-urlrequest-string/327199/1 "2012-02-12T18:32:41Z")

</div>

How can I replace the value in the getstring for parameter partNumber= **a100** with whatever the user typed into the search box.

[http://www.stockmarket.aero/StockMarket/SearchActionR.do?partNumber=a100&communityName=BLUE&partial=true&theAction=search](http://www.stockmarket.aero/StockMarket/SearchActionR.do?partNumber=a100&communityName=BLUE&partial=true&theAction=search)

AS3 Code

var link:URLRequest=new URLRequest(“[http://www.stockmarket.aero/StockMarket/SearchActionR.do?partNumber=a100&communityName=BLUE&partial=true&theAction=search](http://www.stockmarket.aero/StockMarket/SearchActionR.do?partNumber=a100&communityName=BLUE&partial=true&theAction=search)” + search\_txt.text);  
search\_btn.addEventListener(MouseEvent.CLICK, onClick);  
function onClick(event:MouseEvent):void  
{  
navigateToURL(link);  
}
