Append variables to the request string before Sending data with a URLRequest object
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> import flash.net.*; public function executeSearch(event:MouseEvent):void { var u:URLRequest = new URLRequest("http://www.google.com/search?hl=en&q=" + ta1.text); navigateToURL(u,"_blank"); } </mx:Script> <mx:TextArea id="ta1" /> <mx:Button label="Search" click="executeSearch(event)" /> </mx:Application>