Need Actionscript code for searching using a Google custom search...
Hey, I'm trying to put a search within the flash part of my site...and I almost got it. Here's what I have so far:
textIn.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
var requestSearch:URLRequest = new URLRequest("http://www.google.com/cse?cx=018136540007601399133%3Amud-wqbj95e&ie=UTF-8&q=" + search1.text + "&sa=Search");
function keyPressed(event:KeyboardEvent):void
{
if (event.keyCode == Keyboard.ENTER)
{
search1.text = textIn.text;
navigate();
}
}
function navigate() {
navigateToURL(requestSearch);
}
...But it searches with my google custom search for [Object = null];
Does anyone know how to fix this?
Thanks
Copyright Gary Rosenzweig
