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

http://www.google.com.au/search?hl=en&q=ELVIS&btnG=Search&meta=

Thanks for your help in advance
Fed
fedders_worldAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sam85281Commented:
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");
}

-Sam
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
fedders_worldAuthor Commented:
Hey,

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.

Thanks.
Fed
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.