• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

How to put a search bar into flash

Hey guys n girls.

Just a quick question. How can i get something like msn or google search into flash

what i want to do is have a text box and a button. when i click the button it will sub the search query in the text box into a google url

for example is i search elvis it would redirect me to this


Thanks for your help in advance
1 Solution
1. Make your input textbox and give it the Var: myQuery

2. Make your button and give it the action:
on (release) {
getURL("http://www.google.com.au/search?hl=en&q=" + myQuery + "&btnG=Search&meta=");

Or if you want it to open in it's own window:
on (release) {
getURL("http://www.google.com.au/search?hl=en&q=" + myQuery + "&btnG=Search&meta=", "blank");

fedders_worldAuthor Commented:

This works 50%. Sorry it took me so long to reply, have been away.

Anyway if i use this action script it loads google, but not the search query. it just loads a blank google page.
I am using Flash MX 2004.

The textbox is set as myQuery as you suggested.


Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now